From abdd58e490660cc3719308b29292e1902845574b Mon Sep 17 00:00:00 2001 From: Adam Ruzicka Date: Tue, 4 Oct 2022 14:23:40 +0200 Subject: [PATCH] Fixes #35592 - Fix delegated proxy task watching Consider tasks which were 'triggered' or 'parent-triggered' as running. --- app/models/foreman_tasks/remote_task.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/foreman_tasks/remote_task.rb b/app/models/foreman_tasks/remote_task.rb index 830591ced..3e24e15ce 100644 --- a/app/models/foreman_tasks/remote_task.rb +++ b/app/models/foreman_tasks/remote_task.rb @@ -7,7 +7,7 @@ class RemoteTask < ApplicationRecord :foreign_key => :execution_plan_id, :inverse_of => :remote_tasks - scope :triggered, -> { where(:state => 'triggered') } + scope :triggered, -> { where(:state => ['triggered', 'parent-triggered']) } scope :pending, -> { where(:state => 'new') } scope :external, -> { where(:state => 'external') }