Open
Description
I need to perform something similar to:
await Job("id", pool).abort()
await pool.enqueue_job("func", _job_id="id")
However, sometimes this can lead to the abort of the freshly enqueued job. From my observations, this always happens if the aborted job is not found. Waiting until a key in the abort queue expires (1 minute, not configurable) seems to help. My questions are then:
- Is waiting for
arq.constants.abort_job_max_age
guaranteed to be enough for the freshly enqueued job to not be aborted? - Is it possible to not abort a job if it's not found? Simply checking the
job.status()
is a race condition.
Metadata
Metadata
Assignees
Labels
No labels