dynflow 1.1.5 → 1.1.6

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: 3ff2ab304934fc482e25484bbe56d42127d3aca7ad3a81dc5598cc11e883a074
4
- data.tar.gz: 4001a6119fd150eefdffd770334fec59f2c29cfcca96f1a475e8755c8557acd4
3
+ metadata.gz: 9117b88e2a562fc968ff4e9aa26ac35d2ac33fc0a519b81e4bc42d3f8b9139c1
4
+ data.tar.gz: d248a508d1e525745fedd29dbc1dce7b9b0ec1a4b1bb75ca43f12ee9f16189b6
5
5
  SHA512:
6
- metadata.gz: 2686b1f828a16b4981ceed58cd1751b6a4d1570679e34d225f4f242b05b01d4c8480891d29ab8ccfed79fa251710a698fef0974c2895ce8bbcd089af81d0cc40
7
- data.tar.gz: 1f9d8c6d4401f34737b3a2792dfc3105bb6a5ec1b7233c52e26dba1ee1ffd6d3419ccefdd3110d7bb8a87e577b6110306c5c5fd62579cc972039ad6e5bf268c5
6
+ metadata.gz: c17a37b38e654bc0db350c9c453e9badb34c3575c48c45e32760e093de79600d10768b66e4b6a70ba9975a1fa39a626d1b44d226a68676dd50a3ef5a2ac1f9a4
7
+ data.tar.gz: 24c700a6590beedff832767276ff48ad01d927620634a1ef0b36e2f5020733e518809ac114dbf1f281230e7a0bcdc4f88534c9ecb2bf39d0dc038539133c5631
@@ -9,17 +9,18 @@ module Dynflow
9
9
  end
10
10
 
11
11
  def on_message(work_item)
12
- ok = false
12
+ already_responded = false
13
13
  Executors.run_user_code do
14
14
  work_item.execute
15
- ok = true
16
15
  end
17
16
  rescue Errors::PersistenceError => e
18
17
  @pool.tell([:handle_persistence_error, reference, e, work_item])
19
- ok = false
18
+ already_responded = true
20
19
  ensure
21
20
  Dynflow::Telemetry.with_instance { |t| t.increment_counter(:dynflow_worker_events, 1, @telemetry_options) }
22
- @pool.tell([:worker_done, reference, work_item]) if ok
21
+ if !already_responded && Concurrent.global_io_executor.running?
22
+ @pool.tell([:worker_done, reference, work_item])
23
+ end
23
24
  end
24
25
  end
25
26
  end
@@ -1,3 +1,3 @@
1
1
  module Dynflow
2
- VERSION = '1.1.5'.freeze
2
+ VERSION = '1.1.6'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dynflow
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.5
4
+ version: 1.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ivan Necas
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2018-12-07 00:00:00.000000000 Z
12
+ date: 2018-12-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: multi_json
@@ -611,7 +611,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
611
611
  version: '0'
612
612
  requirements: []
613
613
  rubyforge_project:
614
- rubygems_version: 2.7.3
614
+ rubygems_version: 2.7.6
615
615
  signing_key:
616
616
  specification_version: 4
617
617
  summary: DYNamic workFLOW engine