Add wait before retrying failed jobs (Fix #1950)
This commit is contained in:
parent
2f7f9bb183
commit
a04edeb7ff
1 changed files with 1 additions and 0 deletions
|
@ -245,6 +245,7 @@ class Scheduler < ApplicationModel
|
||||||
|
|
||||||
# restart job again
|
# restart job again
|
||||||
if try_run_max > try_count
|
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)
|
_start_job(job, try_count, try_run_time)
|
||||||
else
|
else
|
||||||
# release thread lock and remove thread handle
|
# release thread lock and remove thread handle
|
||||||
|
|
Loading…
Reference in a new issue