diff options
Diffstat (limited to 'app/services/ci/pipeline_processing/atomic_processing_service/status_collection.rb')
-rw-r--r-- | app/services/ci/pipeline_processing/atomic_processing_service/status_collection.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/services/ci/pipeline_processing/atomic_processing_service/status_collection.rb b/app/services/ci/pipeline_processing/atomic_processing_service/status_collection.rb index 85646b79254..9a53c6d8fc1 100644 --- a/app/services/ci/pipeline_processing/atomic_processing_service/status_collection.rb +++ b/app/services/ci/pipeline_processing/atomic_processing_service/status_collection.rb @@ -67,6 +67,11 @@ module Ci all_jobs.lazy.reject { |job| job[:processed] } end + # This method returns the names of jobs that have a stopped status + def stopped_job_names + all_jobs.select { |job| job[:status].in?(Ci::HasStatus::STOPPED_STATUSES) }.pluck(:name) # rubocop: disable CodeReuse/ActiveRecord + end + private # We use these columns to perform an efficient calculation of a status |