mirror of https://github.com/rq/rq.git
worker.monitor_work_horse() should remove job from StartedJobRegistry after it finishes.
This commit is contained in:
parent
c0dd5f7c98
commit
c43b7fd298
|
@ -830,6 +830,8 @@ class Worker:
|
|||
self.heartbeat()
|
||||
|
||||
self.set_current_job_working_time(0)
|
||||
queue.started_job_registry.remove(job)
|
||||
|
||||
self._horse_pid = 0 # Set horse PID to 0, horse has finished working
|
||||
if ret_val == os.EX_OK: # The process exited normally.
|
||||
return
|
||||
|
|
Loading…
Reference in New Issue