BigW Consortium Gitlab

Commit a43baa05 by Grzegorz Bizon

Rename pipeline workers to match current convention

parent cd584108
...@@ -89,10 +89,10 @@ class CommitStatus < ActiveRecord::Base ...@@ -89,10 +89,10 @@ class CommitStatus < ActiveRecord::Base
break if transition.loopback? break if transition.loopback?
if commit_status.complete? if commit_status.complete?
ProcessPipelineWorker.perform_async(pipeline.id) PipelineProcessWorker.perform_async(pipeline.id)
end end
UpdatePipelineWorker.perform_async(pipeline.id) PipelineUpdateWorker.perform_async(pipeline.id)
end end
true true
......
class ProcessPipelineWorker class PipelineProcessWorker
include Sidekiq::Worker include Sidekiq::Worker
sidekiq_options queue: :default sidekiq_options queue: :default
......
class UpdatePipelineWorker class PipelineUpdateWorker
include Sidekiq::Worker include Sidekiq::Worker
sidekiq_options queue: :default sidekiq_options queue: :default
......
require 'spec_helper' require 'spec_helper'
describe ProcessPipelineWorker do describe PipelineProcessWorker do
describe '#perform' do describe '#perform' do
context 'when pipeline exists' do context 'when pipeline exists' do
let(:pipeline) { create(:ci_pipeline) } let(:pipeline) { create(:ci_pipeline) }
......
require 'spec_helper' require 'spec_helper'
describe UpdatePipelineWorker do describe PipelineUpdateWorker do
describe '#perform' do describe '#perform' do
context 'when pipeline exists' do context 'when pipeline exists' do
let(:pipeline) { create(:ci_pipeline) } let(:pipeline) { create(:ci_pipeline) }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment