Module engine
Expand description
The embedded engine: one thread per shard, each running a
[ShardRuntime] inside a single-threaded Tokio runtime so step functions
can use Tokio I/O.
Structs§
- Config
- Engine
- An embedded Fusee engine. Cheap to clone.
- Event
Options - The options of a debounced start or batched event.
- RunHandle
- A run, addressed by workflow ID.
- Schedule
Handle - A schedule, addressed by name.
- Start
Options - How a run is started.
- Update
Options - The options of an update.
Enums§
- Durability
- What survives what. See the documentation’s guarantees page.
Constants§
- DEFAULT_
PAYLOAD_ OFFLOAD_ BYTES Config::payload_offload_bytesofConfig::local.- TOOL_
RETENTION - The retention a tool opens a data directory with (the CLI’s
--dir,fusee backup,fusee export,fusee reshard): nothing expires. Retention is the application’s: a shard removes finished runs past it when it opens, so a tool opening the directory with its own (the 24 h default) would delete runs the application keeps longer.
Functions§
- open_
directory - open_
shared_ log - The shared log of a local directory created with log format 3, opened
and recovered;
Nonefor other directories and modes. - prepare_
dir - Creates the data directory if needed and returns its shard count.
- read_
meta (shards, log format)of a data directory (Nonebefore its first open). Server mode reads it to pick its log.- runtime_
config - The runtime settings for one shard of an engine.
- write_
meta - Writes
fusee.metaatomically and durably.
Type Aliases§
- EnvFactory
- Creates a shard’s storage (server mode and other custom backends).