Rename pipeline workers to match current convention

This commit is contained in:
Grzegorz Bizon 2016-10-06 14:52:00 +02:00
parent cd58410811
commit a43baa056e
5 changed files with 6 additions and 6 deletions

View file

@ -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

View file

@ -1,4 +1,4 @@
class ProcessPipelineWorker
class PipelineProcessWorker
include Sidekiq::Worker
sidekiq_options queue: :default

View file

@ -1,4 +1,4 @@
class UpdatePipelineWorker
class PipelineUpdateWorker
include Sidekiq::Worker
sidekiq_options queue: :default

View file

@ -1,6 +1,6 @@
require 'spec_helper'
describe ProcessPipelineWorker do
describe PipelineProcessWorker do
describe '#perform' do
context 'when pipeline exists' do
let(:pipeline) { create(:ci_pipeline) }

View file

@ -1,6 +1,6 @@
require 'spec_helper'
describe UpdatePipelineWorker do
describe PipelineUpdateWorker do
describe '#perform' do
context 'when pipeline exists' do
let(:pipeline) { create(:ci_pipeline) }