Skip to content

Commit aaa9585

Browse files
committed
Add comment
1 parent 8a700f7 commit aaa9585

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

arq/worker.py

+2
Original file line numberDiff line numberDiff line change
@@ -449,6 +449,8 @@ async def start_jobs(self, job_ids: List[bytes]) -> None:
449449
score = await pipe.zscore(self.queue_name, job_id)
450450
if ongoing_exists or not score or score > timestamp_ms():
451451
# job already started elsewhere, or already finished and removed from queue
452+
# if score > ts_now,
453+
# it means probably the job was re-enqueued with a delay in another worker
452454
self.job_counter = self.job_counter - 1
453455
self.sem.release()
454456
logger.debug('job %s already running elsewhere', job_id)

0 commit comments

Comments
 (0)