persistence
Key of the [outputs] table. Qualified name: outputs.persistence
Journal persistence: "full" keeps every event, "subset" only the event types listed in `events`, "none" writes no journal file.
- Type
- stringfrom a closed set
- Unit
- none
- Default
- "full"used when the key is absent
- Valid range
- one of 3"full", "subset", "none"
- Set in
- [outputs]optional table
- Since
- 0.1engine 0.1.0
Description
persistence is optional. When it is absent, the engine uses "full", and writes that value into effective.toml in the output folder. Accepted values: "full", "subset", "none". Any other value stops with E1009.
Example
# scenario.toml
[scenario]
name = "tracer"
seed = 20180101
[time]
start = 2018-01-01
end = 2019-01-01
[outputs]
persistence = "full" # this page
[plugins."test/ticker"]Run it with the engine built from source: cohortix run scenario.toml --output output/example.
Related
When the key is misspelled
Written presistence, the key is refused before anything runs with the nearest accepted name:
error[E1022]: Unknown key `presistence` in [outputs]; did you mean `persistence`?
--> scenario.toml:12:1
= fix: Rename `presistence` to `persistence`, or remove it; the accepted keys of [outputs] are "persistence", "events", "size_budget".
Errors that name this key
E1008:persistencemust be …, but it is ….E1009:persistenceis …, which is not one of ….E1022: Unknown key…in [outputs]; did you mean…?
See also
- [outputs]What the run writes to its output folder.
- eventsEvent types the journal keeps when persistence is "subset", as canonical names such as "c
- size_budgetJournal size budget in bytes
Generated from crates/cohortix-kernel/src/scenario/config.rs. Do not edit. This page (key outputs.persistence) is built from the engine sources at every documentation build. To change it, edit its ConfigKey in kernel_groups() and its one-line comment config.key.outputs.persistence in schemas/messages/en.toml and open a pull request.