Skip to main content

Crate durable

Crate durable 

Source

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;

Modules§

ctx
error
executor

Structs§

DatabaseTransaction
Defines a database transaction, whether it is an open transaction and the type of backend to use

Enums§

TaskStatus

Functions§

init
Initialize durable: connect to Postgres, run migrations, start heartbeat, and recover stale tasks from prior crashes.
init_db
Initialize durable: connect to Postgres and run migrations only.
init_with_config
Like init but with a custom HeartbeatConfig.

Attribute Macros§

step
Marks a function as a durable step.
workflow
Marks a function as a durable workflow.