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
Boxiang Sun
gitlab-ce
Commits
404a541d
Commit
404a541d
authored
May 21, 2019
by
Matija Čupić
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Expire pipeline cache on finish
parent
01a28ead
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
0 deletions
+2
-0
app/workers/build_finished_worker.rb
app/workers/build_finished_worker.rb
+1
-0
spec/workers/build_finished_worker_spec.rb
spec/workers/build_finished_worker_spec.rb
+1
-0
No files found.
app/workers/build_finished_worker.rb
View file @
404a541d
...
@@ -30,6 +30,7 @@ class BuildFinishedWorker
...
@@ -30,6 +30,7 @@ class BuildFinishedWorker
# We execute these async as these are independent operations.
# We execute these async as these are independent operations.
BuildHooksWorker
.
perform_async
(
build
.
id
)
BuildHooksWorker
.
perform_async
(
build
.
id
)
ArchiveTraceWorker
.
perform_async
(
build
.
id
)
ArchiveTraceWorker
.
perform_async
(
build
.
id
)
ExpirePipelineCacheWorker
.
perform_async
(
build
.
pipeline_id
)
ChatNotificationWorker
.
perform_async
(
build
.
id
)
if
build
.
pipeline
.
chat?
ChatNotificationWorker
.
perform_async
(
build
.
id
)
if
build
.
pipeline
.
chat?
end
end
end
end
spec/workers/build_finished_worker_spec.rb
View file @
404a541d
...
@@ -17,6 +17,7 @@ describe BuildFinishedWorker do
...
@@ -17,6 +17,7 @@ describe BuildFinishedWorker do
expect_any_instance_of
(
BuildCoverageWorker
).
to
receive
(
:perform
)
expect_any_instance_of
(
BuildCoverageWorker
).
to
receive
(
:perform
)
expect
(
BuildHooksWorker
).
to
receive
(
:perform_async
)
expect
(
BuildHooksWorker
).
to
receive
(
:perform_async
)
expect
(
ArchiveTraceWorker
).
to
receive
(
:perform_async
)
expect
(
ArchiveTraceWorker
).
to
receive
(
:perform_async
)
expect
(
ExpirePipelineCacheWorker
).
to
receive
(
:perform_async
)
described_class
.
new
.
perform
(
build
.
id
)
described_class
.
new
.
perform
(
build
.
id
)
end
end
...
...
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