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

10 lines
205 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
def perform(hook_id, data)
data = data.with_indifferent_access
Service.find(hook_id).execute(data)
end
end