Re-exports§
pub use ctx::Ctx;pub use ctx::RetryPolicy;pub use ctx::TaskQuery;pub use ctx::TaskSort;pub use ctx::TaskSummary;pub use error::DurableError;pub use executor::Executor;pub use executor::HeartbeatConfig;pub use executor::RecoveredTask;pub use inventory;
Modules§
Structs§
- Database
Transaction - Defines a database transaction, whether it is an open transaction and the type of backend to use
- Workflow
Registration - A compiled-in registration of a workflow function for automatic crash recovery.
Enums§
Functions§
- executor_
id - Returns the executor ID set by
init, orNoneifinitwas not called. - find_
workflow - Look up a registered workflow by name.
- init
- Initialize durable: connect to Postgres, run migrations, start heartbeat, recover stale tasks, and auto-resume registered workflows.
- init_db
- Initialize durable: connect to Postgres and run migrations only.
- init_
with_ config - Like
initbut with a customHeartbeatConfig. - resume_
workflow - Resume a failed workflow from its last completed step (DBOS-style).