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 +4 -4
- data/lib/dynflow/executors/parallel/worker.rb +5 -4
- data/lib/dynflow/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9117b88e2a562fc968ff4e9aa26ac35d2ac33fc0a519b81e4bc42d3f8b9139c1
|
4
|
+
data.tar.gz: d248a508d1e525745fedd29dbc1dce7b9b0ec1a4b1bb75ca43f12ee9f16189b6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
-
|
18
|
+
already_responded = true
|
20
19
|
ensure
|
21
20
|
Dynflow::Telemetry.with_instance { |t| t.increment_counter(:dynflow_worker_events, 1, @telemetry_options) }
|
22
|
-
|
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
|
data/lib/dynflow/version.rb
CHANGED
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.
|
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-
|
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.
|
614
|
+
rubygems_version: 2.7.6
|
615
615
|
signing_key:
|
616
616
|
specification_version: 4
|
617
617
|
summary: DYNamic workFLOW engine
|