#5849·gel

Job Queue/Task Background Worker

Author: ssendevCreated Jul 26, 2023Updated Mar 18, 2026
Labelsenhancement

It would be nice to have a native job queue. This is nice for e.g. sending emails since the job is only enqueued when the transaction succeeds.

In the past I used https://github.com/graphile/worker which has all features i ever needed and more with priority, named queues, cron, different tasks which can get worked on on different machines.

Having it directly supported in EdgeDB would be the best but allowing to use e.g. graphile-worker would also be good. Interop would require the ability to call postgres functions and have a schema in the postgres database that's a blackbox to EdgeDB maybe something like

esdl
module jobs opaque postgres {
  function add(task: str, payload: json) -> str
}