debian-mirror-gitlab/app/workers/project_service_worker.rb

12 lines
236 B
Ruby
Raw Normal View History

2015-04-26 12:48:37 +05:30
class ProjectServiceWorker
include Sidekiq::Worker
2016-11-03 12:29:30 +05:30
include DedicatedSidekiqQueue
2015-04-26 12:48:37 +05:30
2017-09-10 17:25:29 +05:30
sidekiq_options dead: false
2015-04-26 12:48:37 +05:30
def perform(hook_id, data)
data = data.with_indifferent_access
Service.find(hook_id).execute(data)
end
end