Add wait before retrying failed jobs (Fix #1950)

This commit is contained in:
Ryan Lue 2018-04-19 15:51:19 +08:00
parent 2f7f9bb183
commit a04edeb7ff

View file

@ -245,6 +245,7 @@ class Scheduler < ApplicationModel
# restart job again
if try_run_max > try_count
sleep(try_count) # wait between retries (see https://github.com/zammad/zammad/issues/1950)
_start_job(job, try_count, try_run_time)
else
# release thread lock and remove thread handle