web47core 3.2.7 → 3.2.8

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: 8a2f6513fc3ea7307fc8b715807aaeef3ac0c63151bec753ecde3e5233742da5
4
- data.tar.gz: 2d27d9d04e23dfd8e71ae2f6fb6080567cbab65f1af0f98ce09c5a34f0e90dfd
3
+ metadata.gz: 998801eca3b3e54c48a069b4d7314fefb4b65fb3ee79663614b6bad6143eb470
4
+ data.tar.gz: f51caf108f0c544036eb5f949c72a3dfae98bde64bc1a57ef3ef8ac874e516e5
5
5
  SHA512:
6
- metadata.gz: 42801f50f150d8d47db4833cd7c5aff6a7f4743cd6a60797000c331f1815cc57ce6f844933dc7424343962f3363c3b0d9af0a2ac257dd0ff2c6bd1c9ca0a232c
7
- data.tar.gz: 8fca8b55c877d788266c5628b59d820b0e147393fd138db16e8bca762dd2a396801fd0701b7a32e0cc56b4fa5c6ae97e45597701f1714787f1892987608378bd
6
+ metadata.gz: fb14648cc706c95f806192e5a6e7bee71de7bae0d07666f45440ab52b0b0660585d9914aa2f21ccbcfde5c0e56365d0f09663c4d15819152665854de09f6fefc
7
+ data.tar.gz: 9a8eb01bd565a883fccac315eb76a6dff2ab0176eb4fa0cbe33e9ba7d5d0fda3549938a2ad42e8f1ec7565ea1003c97fc73fe75cee4f91d75a3b5278af871d23
@@ -41,8 +41,8 @@ class CommandJob
41
41
 
42
42
  # @abstract cancel the current job
43
43
  def cancel!(actor)
44
- update! cancelled_by: actor, cancelled_at: Time.now.utc, state: STATE_CANCELLED
45
- child_jobs.map { |j| j.cancel!(actor) }
44
+ update!(cancelled_by: actor, cancelled_at: Time.now.utc, state: STATE_CANCELLED) unless completed?
45
+ child_jobs.each { |j| j.cancel!(actor) }
46
46
  end
47
47
 
48
48
  def child_jobs
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Web47core
4
- VERSION = '3.2.7'
4
+ VERSION = '3.2.8'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: web47core
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.7
4
+ version: 3.2.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Schroeder