Long running delayed_job jobs stay locked after a restart on Heroku

后端 未结 6 2218
遥遥无期
遥遥无期 2020-12-01 05:00

When a Heroku worker is restarted (either on command or as the result of a deploy), Heroku sends SIGTERM to the worker process. In the case of delayed_job

6条回答
  •  萌比男神i
    2020-12-01 05:20

    That is what max_run_time is for: after max_run_time has elapsed from the time the job was locked, other processes will be able to acquire the lock.

    See this discussion from google groups

提交回复
热议问题