8a65229b35
A new queue of "project_web_hook" is used to process web hooks asynchronously, allowing each to succeed/fail (and be retried) independently. (Basically, project web hooks now process the same as system hooks.)
10 lines
176 B
Ruby
10 lines
176 B
Ruby
class ProjectWebHookWorker
|
|
include Sidekiq::Worker
|
|
|
|
sidekiq_options queue: :project_web_hook
|
|
|
|
def perform(hook_id, data)
|
|
WebHook.find(hook_id).execute data
|
|
end
|
|
end
|