weel 1.99.115 → 1.99.116

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/weel.rb +4 -3
  3. data/weel.gemspec +1 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2f20fd5f7b32a6434668eeaaa8045d5c0296572bef72e2f5c379463db03f2920
4
- data.tar.gz: 19f0d8bec594c5dbcd7c1d320ff48f57e79576cf9a0ce49ddd8831941fdcf300
3
+ metadata.gz: 4179daff04f9e6d8e955eeec5538cd100673aeb2941c8445a88639d321f828b2
4
+ data.tar.gz: 5fe7cde1bf8ab2bed9e6a0a6a71e9ee19910a118e9ea00bbd99efcd88ffcf40f
5
5
  SHA512:
6
- metadata.gz: aa1b2e8be0012e82d0357898e6d1e393899c4b1e1fca9351d9e129cb0bad2098d4e9455aa7167f7692b4befcdb8b413fb57b89f7a1bbc7fa07518667340d5dc9
7
- data.tar.gz: b3f2448a93b65276467bf1cf7e4317313063bbd36e7658d84d3668e924b629812b4172d674b67d7a22fd49e412b3106d68c2289ffefcc7f0b1110de5e24f568a
6
+ metadata.gz: 95bda8281dd834bc7d2f1dcb63b135f162b4ddf45847c22de8835d091fc2d920ec7a6104849be59447b379d22bbd71e230610cbe22f751cc6a50a0ebb7d5008e
7
+ data.tar.gz: 9b06b7677afe6f1449c6fd8dfcd64de06607d36d659e80c9c8a016652a0cfac66533ee760245fa39e1b2726b50a83e000483fb9ed846a19744f758a2f225c4d1
data/lib/weel.rb CHANGED
@@ -525,7 +525,7 @@ class WEEL
525
525
  unless self.__weel_state == :stopping || self.__weel_state == :finishing || self.__weel_state == :stopped
526
526
  # first set all to no_longer_neccessary
527
527
  Thread.current[:branches].each do |thread|
528
- if thread.alive?
528
+ if thread.alive? && thread[:branch_wait_count_cancel_active] == false
529
529
  thread[:nolongernecessary] = true
530
530
  __weel_recursive_continue(thread)
531
531
  end
@@ -971,6 +971,7 @@ class WEEL
971
971
  wp.detail = :unmark
972
972
  end
973
973
  rescue Signal::NoLongerNecessary
974
+ connectionwrapper.inform_activity_done
974
975
  @__weel_positions.delete wp
975
976
  Thread.current[:branch_position] = nil
976
977
  wp.passthrough = nil
@@ -991,13 +992,13 @@ class WEEL
991
992
  if Thread.current[:branch_parent]
992
993
  Thread.current[:branch_parent][:mutex].synchronize do
993
994
  if Thread.current[:branch_parent][:branch_wait_count_cancel_condition] == :first
994
- if !Thread.current[:branch_wait_count_cancel_active]
995
+ if !Thread.current[:branch_wait_count_cancel_active] && Thread.current[:branch_parent][:branch_wait_count_cancel] < Thread.current[:branch_parent][:branch_wait_count]
995
996
  Thread.current[:branch_wait_count_cancel_active] = true
996
997
  Thread.current[:branch_parent][:branch_wait_count_cancel] += 1
997
998
  end
998
999
  if Thread.current[:branch_parent][:branch_wait_count_cancel] == Thread.current[:branch_parent][:branch_wait_count] && self.__weel_state != :stopping && self.__weel_state != :finishing
999
1000
  Thread.current[:branch_parent][:branches].each do |thread|
1000
- if thread.alive? && thread != Thread.current
1001
+ if thread.alive? && thread[:branch_wait_count_cancel_active] == false
1001
1002
  thread[:nolongernecessary] = true
1002
1003
  __weel_recursive_continue(thread)
1003
1004
  end
data/weel.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "weel"
3
- s.version = "1.99.115"
3
+ s.version = "1.99.116"
4
4
  s.platform = Gem::Platform::RUBY
5
5
  s.license = "LGPL-3.0"
6
6
  s.summary = "Workflow Execution Engine Library (WEEL)"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: weel
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.99.115
4
+ version: 1.99.116
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juergen eTM Mangler
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2024-06-11 00:00:00.000000000 Z
12
+ date: 2024-06-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: test-unit