dynflow 1.8.0 → 1.8.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f067dee815c7352328f4a08c6cf7aa5f60c45e8c46ae0bb561ed3eff052a3f47
4
- data.tar.gz: 37d1bf9a5bed948a9c0c966ac8649d6a1ba097801fcf3b3608a6f353e3b8cd14
3
+ metadata.gz: c3701c362bc17e7586355538e6a469acbb09a6fc88c3f131de41efb6238767ea
4
+ data.tar.gz: 6dd66b68d8d6a3ce55badad2d898dac52d1dc1d3451e2b0ba93f70e201bf3c4b
5
5
  SHA512:
6
- metadata.gz: 3eb25b7a20ac5022e0f1f32062ac6d7445d5fbe2fb482e5d34278a402f49e5feb53e6a7116f5fb06b1758faa6ea253fdda496e76d94dac0a6e2e497653c98fe8
7
- data.tar.gz: 242ade0c666d77988957f473ed76aebef323f985adaa4a851c0620c14768fc19db7ef0087d0ab2d2983059aa0fd671721d377dfb9531d00c8f5a4a9b6a8380d2
6
+ metadata.gz: c9984e6831e5a1e6a17e6c8b64b09d026d2c7d81c3d75d5a19963d8246ddef47f54358c8f2c824312328af25712e79c582fb6a0511b615f0a20c3e4fdce49e73
7
+ data.tar.gz: 32eaf38d89b5c9f59ac7ddc464a629cbe8a4e0383fb5582cc2a6bd7ccd184bc76b5d5d493b27cec9b9125dc90e56f3641fce5239167d7c69f6ac0bd9b0574c36
data/dynflow.gemspec CHANGED
@@ -29,7 +29,7 @@ Gem::Specification.new do |s|
29
29
 
30
30
  s.add_development_dependency "rake"
31
31
  s.add_development_dependency "rack-test"
32
- s.add_development_dependency "minitest"
32
+ s.add_development_dependency "minitest", "< 5.19"
33
33
  s.add_development_dependency "minitest-reporters"
34
34
  s.add_development_dependency "minitest-stub-const"
35
35
  s.add_development_dependency "activerecord"
@@ -130,7 +130,7 @@ module Dynflow::Action::V2
130
130
 
131
131
  def recalculate_counts
132
132
  total = total_count
133
- failed = sub_plans_count('state' => %w(paused stopped), 'result' => 'error')
133
+ failed = sub_plans_count('state' => %w(paused stopped), 'result' => %w(error warning))
134
134
  success = sub_plans_count('state' => 'stopped', 'result' => 'success')
135
135
  output.update(:pending_count => total - failed - success,
136
136
  :failed_count => failed - output.fetch(:resumed_count, 0),
@@ -173,6 +173,7 @@ module Dynflow::Action::V2
173
173
  def cancel!(force = false)
174
174
  # Count the not-yet-planned tasks as cancelled
175
175
  output[:cancelled_count] = total_count - output[:planned_count]
176
+ on_planning_finished if output[:cancelled_count].positive?
176
177
  # Pass the cancel event to running sub plans if they can be cancelled
177
178
  sub_plans(:state => 'running').each { |sub_plan| sub_plan.cancel(force) if sub_plan.cancellable? }
178
179
  suspend
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Dynflow
3
- VERSION = '1.8.0'
3
+ VERSION = '1.8.1'
4
4
  end