lib/rocket_job/plugins/retry.rb in rocketjob-5.1.1 vs lib/rocket_job/plugins/retry.rb in rocketjob-5.2.0.beta1
- old
+ new
@@ -1,6 +1,6 @@
-require 'active_support/concern'
+require "active_support/concern"
module RocketJob
module Plugins
# Automatically retry the job on failure.
#
@@ -74,10 +74,10 @@
end
# Returns [Time] when to retry this job at
# Same basic formula as Delayed Job
def rocket_job_retry_seconds_to_delay
- (rocket_job_failure_count ** 4) + 15 + (rand(30) * (rocket_job_failure_count + 1))
+ (rocket_job_failure_count**4) + 15 + (rand(30) * (rocket_job_failure_count + 1))
end
end
end
end