Set lease timeout to 8 hours

parent 77723c05
...@@ -2,7 +2,7 @@ module Geo ...@@ -2,7 +2,7 @@ module Geo
class RepositoryBackfillService class RepositoryBackfillService
attr_reader :project attr_reader :project
LEASE_TIMEOUT = 24.hours.freeze LEASE_TIMEOUT = 8.hours.freeze
def initialize(project) def initialize(project)
@project = project @project = project
......
...@@ -2,7 +2,7 @@ class GeoBackfillWorker ...@@ -2,7 +2,7 @@ class GeoBackfillWorker
include Sidekiq::Worker include Sidekiq::Worker
include CronjobQueue include CronjobQueue
LEASE_TIMEOUT = 24.hours.freeze LEASE_TIMEOUT = 8.hours.freeze
RUN_TIME = 5.minutes.to_i.freeze RUN_TIME = 5.minutes.to_i.freeze
def perform def perform
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment