Skip to content

Commit

Permalink
Fixes #35592 - Fix delegated proxy task watching
Browse files Browse the repository at this point in the history
Consider tasks which were 'triggered' or 'parent-triggered' as running.
  • Loading branch information
adamruzicka committed Nov 7, 2022
1 parent 2f58d09 commit abdd58e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/foreman_tasks/remote_task.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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') }

Expand Down

0 comments on commit abdd58e

Please sign in to comment.