Skip to content

Having a task run once and only once. #646

Answered by ewjoachim
paulzakin asked this question in Q&A
Discussion options

You must be logged in to vote

Procrastinate jobs are kept in a table, much like the migration table. Here's a short run-down of how it works, with links to the relevant code.

Note also that there are things explained on this page: https://procrastinate.readthedocs.io/en/stable/discussions.html

There is a table named "procrastinate_jobs":

CREATE TABLE procrastinate_jobs (

A task is associated with a status:
CREATE TYPE procrastinate_job_status AS ENUM (
'todo', -- The job is queued
'doing', -- The job has been fetched by a worker
'succeeded', -- T…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@paulzakin
Comment options

Answer selected by paulzakin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants