It's already async, from Project#execute_services, feedback:

https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/6342/diffs#note_16132555
This commit is contained in:
Lin Jen-Shin 2016-09-30 00:12:10 +08:00
parent c065f5360f
commit 8dd580f402

View file

@ -32,7 +32,7 @@ class PipelinesEmailService < Service
return unless all_recipients.any?
pipeline_id = data[:object_attributes][:id]
SendPipelineNotificationWorker.perform_async(pipeline_id, all_recipients)
SendPipelineNotificationWorker.new.perform(pipeline_id, all_recipients)
end
def can_test?