diff options
Diffstat (limited to 'app/models/ci/resource_group.rb')
-rw-r--r-- | app/models/ci/resource_group.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/ci/resource_group.rb b/app/models/ci/resource_group.rb index a220aa7bb18..48f321a236d 100644 --- a/app/models/ci/resource_group.rb +++ b/app/models/ci/resource_group.rb @@ -58,6 +58,10 @@ module Ci end end + def current_processable + Ci::Processable.find_by('(id, partition_id) IN (?)', resources.select('build_id, partition_id')) + end + private # In order to avoid deadlock, we do NOT specify the job execution order in the same pipeline. |