diff options
author | Kamil Trzciński <ayufan@ayufan.eu> | 2019-08-02 20:31:01 +0300 |
---|---|---|
committer | Kamil Trzciński <ayufan@ayufan.eu> | 2019-08-02 21:31:17 +0300 |
commit | 593490e5ac6ec5a92fdcc9b82eebbb455ea6cf48 (patch) | |
tree | 56dd0ba4cbb8876e96cfab57a22c186e3fff418d /app/models/commit_status.rb | |
parent | 8156e77c1a25bc6050e5036fa3bbfd29201a6d5c (diff) |
Extend PipelineProcessWorker to accept a list of builds
This changes used worker from `BuildProcessWorker`
to `PipelineProcessWorker` to make pipeline
processing much simpler. We process `pipeline_id`,
based on some triggers.
Diffstat (limited to 'app/models/commit_status.rb')
-rw-r--r-- | app/models/commit_status.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/commit_status.rb b/app/models/commit_status.rb index d7eb78db5b8..004ff037558 100644 --- a/app/models/commit_status.rb +++ b/app/models/commit_status.rb @@ -122,7 +122,7 @@ class CommitStatus < ApplicationRecord commit_status.run_after_commit do if pipeline_id if complete? || manual? - BuildProcessWorker.perform_async(id) + PipelineProcessWorker.perform_async(pipeline_id, [id]) else PipelineUpdateWorker.perform_async(pipeline_id) end |