diff --git a/lib/dynflow/action/v2/with_sub_plans.rb b/lib/dynflow/action/v2/with_sub_plans.rb index 1c818402..951211de 100644 --- a/lib/dynflow/action/v2/with_sub_plans.rb +++ b/lib/dynflow/action/v2/with_sub_plans.rb @@ -130,7 +130,7 @@ def run_progress def recalculate_counts total = total_count - failed = sub_plans_count('state' => %w(paused stopped), 'result' => 'error') + failed = sub_plans_count('state' => %w(paused stopped), 'result' => %w(error warning)) success = sub_plans_count('state' => 'stopped', 'result' => 'success') output.update(:pending_count => total - failed - success, :failed_count => failed - output.fetch(:resumed_count, 0),