forked from kent/consciousness
digest.agent: use journal_new with level for writing digests
Instead of memory_write, the digest agent now uses journal_new with level parameter (1=daily, 2=weekly, 3=monthly) which correctly sets the node type. Co-Authored-By: Proof of Concept <poc@bcachefs.org>
This commit is contained in:
parent
f00532bdb7
commit
b77f07fef7
1 changed files with 4 additions and 2 deletions
|
|
@ -23,8 +23,10 @@ summaries into weekly ones.
|
||||||
2. Read the undigested entries with `journal_tail` (level 0, after
|
2. Read the undigested entries with `journal_tail` (level 0, after
|
||||||
the last digest date).
|
the last digest date).
|
||||||
|
|
||||||
3. Write the digest with `memory_write` and link source entries
|
3. Write the digest with `journal_new` using the appropriate level:
|
||||||
to it with `memory_link_add`.
|
- level=1 for daily digests
|
||||||
|
- level=2 for weekly digests
|
||||||
|
- level=3 for monthly digests
|
||||||
|
|
||||||
## Writing style
|
## Writing style
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue