Module export
Expand description
Exported journals and replay testing.
fusee export <dir> <workflow-id> writes a run’s journal to a .fjnl
file, and fusee export --sample 1000 <dir> takes the most recent runs
whose whole journal is available (running and suspended runs, and
finished runs of engines opened with keep_history). A Replayer
runs new workflow code against exported journals, without running any
step function or timer, and reports the first difference by step name.
Run it in CI before a deploy.
File format: FUSEEJNL, a little-endian u32 format version, a
length-prefixed JSON header (workflowId, workflowType, version,
status), then the journal’s canonical records.
Structs§
- Exported
Journal - A journal read from an export file.
- Replay
Report - What replaying one journal found.
- Replayer
- Runs workflow code against exported journals.
Constants§
Functions§
- export_
from_ dir - Exports from a data directory without changing it: the directory is copied (checkpoints first, so the copy is consistent even while an engine writes to it) and the copy is recovered and read.
- file_
name - A file name for an exported journal (workflow IDs may hold
/).