From 3cb78cac2b862207fbbd9ade968b0f4c582c0752 Mon Sep 17 00:00:00 2001 From: Kamil Trzcinski Date: Thu, 20 Oct 2016 09:33:44 +0200 Subject: Use synchronous pipeline processing --- app/models/commit_status.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/models/commit_status.rb') diff --git a/app/models/commit_status.rb b/app/models/commit_status.rb index 7b554be4f9a..48e7c74de11 100644 --- a/app/models/commit_status.rb +++ b/app/models/commit_status.rb @@ -91,9 +91,9 @@ class CommitStatus < ActiveRecord::Base commit_status.run_after_commit do pipeline.try do |pipeline| if complete? - PipelineProcessWorker.perform_async(pipeline.id) + PipelineProcessWorker.perform(pipeline.id) else - PipelineUpdateWorker.perform_async(pipeline.id) + PipelineUpdateWorker.perform(pipeline.id) end end end -- cgit v1.2.1