2014-12-07 05:29:37 -05:00
|
|
|
class ProjectServiceWorker
|
|
|
|
include Sidekiq::Worker
|
2016-10-21 12:13:41 -04:00
|
|
|
include DedicatedSidekiqQueue
|
2014-12-07 05:29:37 -05:00
|
|
|
|
2017-07-17 11:38:02 -04:00
|
|
|
sidekiq_options dead: false
|
|
|
|
|
2014-12-07 05:29:37 -05:00
|
|
|
def perform(hook_id, data)
|
2014-12-29 10:48:43 -05:00
|
|
|
data = data.with_indifferent_access
|
2014-12-07 05:29:37 -05:00
|
|
|
Service.find(hook_id).execute(data)
|
|
|
|
end
|
|
|
|
end
|