Expand description
A simple PostgreSQL-based task runner.
Structs§
- Worker
- A worker that checks for new tasks and runs them.
Enums§
- Submit
Error - Errors that may occur when submitting or scheduling tasks.
Constants§
- NOTIFY_
PG_ CHANNEL - The name of the PostgreSQL notification channel used to signal that there are new tasks.
Traits§
- Task
- A ttype that can be saved and retrieved from the database (via
SerializeandDeserializeOwned), and can run with its specified state. You should only implement this trait for one type, which you’ll use in the database. If you need multiple kinds of tasks, simply use an enum. - Task
Error - An error that can say whether it should be considered permanent or transient.
- TaskExt
- Additional functionality for
Tasktypes. Used for submitting and scheduling tasks (i.e. inserting in the database) or fetching tasks from the database.