Fix usage ping worker queue

This commit is contained in:
Sean McGivern 2017-04-06 20:13:52 +01:00 committed by Rémy Coutable
parent 945bf66d7a
commit 856dcd1832

View file

@ -2,11 +2,9 @@ class GitlabUsagePingWorker
LEASE_TIMEOUT = 86400
include Sidekiq::Worker
include CronjobQueue
include HTTParty
# This is not guaranteed to succeed, so don't retry on failure
sidekiq_options queue: :default, retry: false
def perform
return unless current_application_settings.usage_ping_enabled