Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Tatuya Kamada
gitlab-ce
Commits
a43baa05
Commit
a43baa05
authored
Oct 06, 2016
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename pipeline workers to match current convention
parent
cd584108
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
6 deletions
+6
-6
app/models/commit_status.rb
app/models/commit_status.rb
+2
-2
app/workers/pipeline_process_worker.rb
app/workers/pipeline_process_worker.rb
+1
-1
app/workers/pipeline_update_worker.rb
app/workers/pipeline_update_worker.rb
+1
-1
spec/workers/pipeline_proccess_worker_spec.rb
spec/workers/pipeline_proccess_worker_spec.rb
+1
-1
spec/workers/pipeline_update_worker_spec.rb
spec/workers/pipeline_update_worker_spec.rb
+1
-1
No files found.
app/models/commit_status.rb
View file @
a43baa05
...
@@ -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?
P
rocessPipeline
Worker
.
perform_async
(
pipeline
.
id
)
P
ipelineProcess
Worker
.
perform_async
(
pipeline
.
id
)
end
end
UpdatePipelin
eWorker
.
perform_async
(
pipeline
.
id
)
PipelineUpdat
eWorker
.
perform_async
(
pipeline
.
id
)
end
end
true
true
...
...
app/workers/p
rocess_pipeline
_worker.rb
→
app/workers/p
ipeline_process
_worker.rb
View file @
a43baa05
class
P
rocessPipeline
Worker
class
P
ipelineProcess
Worker
include
Sidekiq
::
Worker
include
Sidekiq
::
Worker
sidekiq_options
queue: :default
sidekiq_options
queue: :default
...
...
app/workers/
update_pipelin
e_worker.rb
→
app/workers/
pipeline_updat
e_worker.rb
View file @
a43baa05
class
UpdatePipelin
eWorker
class
PipelineUpdat
eWorker
include
Sidekiq
::
Worker
include
Sidekiq
::
Worker
sidekiq_options
queue: :default
sidekiq_options
queue: :default
...
...
spec/workers/p
rocess_pipeline
_worker_spec.rb
→
spec/workers/p
ipeline_proccess
_worker_spec.rb
View file @
a43baa05
require
'spec_helper'
require
'spec_helper'
describe
P
rocessPipeline
Worker
do
describe
P
ipelineProcess
Worker
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
)
}
...
...
spec/workers/
update_pipelin
e_worker_spec.rb
→
spec/workers/
pipeline_updat
e_worker_spec.rb
View file @
a43baa05
require
'spec_helper'
require
'spec_helper'
describe
UpdatePipelin
eWorker
do
describe
PipelineUpdat
eWorker
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
)
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment