pg-taskq

Crates.iopg-taskq
lib.rspg-taskq
version0.3.0
sourcesrc
created_at2023-05-18 12:02:25.72024
updated_at2023-10-07 02:57:03.882367
descriptionA simple postgres-based distributed and persistent task queue for Rust
homepagehttps://github.com/rksm/pg-taskq
repositoryhttps://github.com/rksm/pg-taskq
max_upload_size
id867807
size119,563
Robert Krahn (rksm)

documentation

README

pg-taskq

pg-taskq is a simple postgres-based distributed task queue. It is:

  • pluggable: install it under a custom schema with custom table names, easily uninstall it again
  • simple: in postgres there is 1 table, 1 view, 2 plpgsql functions. In Rust there is a task and worker interface
  • async: using tokio
  • two-way: task can easily wait on being processed, producing output
  • hierarchical: tasks can have sub-tasks that get automatically processed bottom-up

I made this to scratch my own itch to have a flexible, persistent and distributed task queue for various long-running processing tasks without having to maintain additional services and infrastructure. This thing is likely not production ready nor is it battle tested — use at your own risk.

For a worker-producer example see this project.

License: MIT

Commit count: 19

cargo fmt