Skip to main content

Module export

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§

ExportedJournal
A journal read from an export file.
ReplayReport
What replaying one journal found.
Replayer
Runs workflow code against exported journals.

Constants§

FORMAT
MAGIC

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 /).