Skip to main content

3 docs tagged with "jobs"

View All Tags

Async Job API

Expose your own long-running work as an async API. The caller POSTs, gets a job id back in milliseconds, and the answer is pushed to a realtime channel when it lands, with a status route as the fallback. Nothing holds a request open, so work that outlives a proxy timeout still completes and is still retrievable. SQLite, so it runs with nothing installed.

Async Job API (Postgres)

The Postgres build of Async Job API: the same submit-then-push job API, on a database that handles concurrent writers. result is jsonb so outcomes are queryable, jobs are indexed by owner, and the status response carries elapsed time. Use this one to deploy; the SQLite sibling exists to be run with nothing installed.

Async Job Polling

Wait for a long-running job without holding a request open. Submit the work, poll until it reports done, and suspend the run between polls so nothing is held open and a restart does not lose it.