From a04edeb7ffa461e07fe97851c3b068cbf0a3e4bd Mon Sep 17 00:00:00 2001 From: Ryan Lue Date: Thu, 19 Apr 2018 15:51:19 +0800 Subject: [PATCH] Add wait before retrying failed jobs (Fix #1950) --- app/models/scheduler.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/models/scheduler.rb b/app/models/scheduler.rb index 9b4c17c93..ea05234b8 100644 --- a/app/models/scheduler.rb +++ b/app/models/scheduler.rb @@ -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