Skip to content

imbolc/pg_task

Repository files navigation

pg_task

License Crates.io Docs.rs

FSM-based resumable Postgres tasks.

Stores task state in Postgres and runs each task as a resumable state machine, with scheduling, retries, delays, errors, and worker leases handled by a single table.

The full crate documentation, tutorial, and API examples live on docs.rs/pg_task

Contributing

Create and migrate a dev db:

echo "DATABASE_URL=postgres:///pg_task?user=$USER" >.env
sqlx db create
sqlx mig run

Please run .pre-commit.sh before sending a PR.

License

This project is licensed under the MIT license.

Contributors

Languages