arq icon indicating copy to clipboard operation
arq copied to clipboard

Job uniqueness

Open JokerQyou opened this issue 5 years ago • 1 comments

The doc says:

arq supports this via custom job ids, see see arq.connections.ArqRedis.enqueue_job(). It guarantees that a job with a particular ID cannot be enqueued again until its execution has finished.

Which seems to imply that once a job has finished its execution, a new job with the same ID can be enqueued. But this is not true. If the job has result (return value, traceback information, etc.) left in Redis, new job with the same ID cannot be enqueued, see these lines of code. In this case the value of keep_result when initialize the worker would affect time duration of this conflict.

I think it's better to mention this in the Job uniqueness section.

JokerQyou avatar Jan 27 '20 11:01 JokerQyou

yes true, happy to accept a PR to correct this in the docs.

samuelcolvin avatar Jan 27 '20 11:01 samuelcolvin

Closed by #391

JonasKs avatar Apr 05 '23 08:04 JonasKs