Skip to content

Commit

Permalink
Fixes #28479 - extend paused tasks count query with result=error
Browse files Browse the repository at this point in the history
(cherry picked from commit f962030)
  • Loading branch information
kgaikwad committed Jan 10, 2020
1 parent 89cfb2c commit db7f8d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion definitions/features/foreman_tasks.rb
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def paused_tasks_count(ignored_tasks = [])
sql = <<-SQL
SELECT count(*) AS count
FROM foreman_tasks_tasks
WHERE state IN ('paused')
WHERE state IN ('paused') AND result IN ('error')
SQL
unless ignored_tasks.empty?
sql << "AND label NOT IN (#{quotize(ignored_tasks)})"
Expand Down

0 comments on commit db7f8d7

Please sign in to comment.