Commit a43baa05 authored by Grzegorz Bizon's avatar Grzegorz Bizon

Rename pipeline workers to match current convention

parent cd584108
......@@ -89,10 +89,10 @@ class CommitStatus < ActiveRecord::Base
break if transition.loopback?
if commit_status.complete?
ProcessPipelineWorker.perform_async(pipeline.id)
PipelineProcessWorker.perform_async(pipeline.id)
end
UpdatePipelineWorker.perform_async(pipeline.id)
PipelineUpdateWorker.perform_async(pipeline.id)
end
true
......
class ProcessPipelineWorker
class PipelineProcessWorker
include Sidekiq::Worker
sidekiq_options queue: :default
......
class UpdatePipelineWorker
class PipelineUpdateWorker
include Sidekiq::Worker
sidekiq_options queue: :default
......
require 'spec_helper'
describe ProcessPipelineWorker do
describe PipelineProcessWorker do
describe '#perform' do
context 'when pipeline exists' do
let(:pipeline) { create(:ci_pipeline) }
......
require 'spec_helper'
describe UpdatePipelineWorker do
describe PipelineUpdateWorker do
describe '#perform' do
context 'when pipeline exists' do
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