ask-graph 0.7.6 → 0.7.7
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.
- checksums.yaml +4 -4
- data/lib/ask/graph/runner.rb +3 -1
- data/lib/ask/graph/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f48462361aab960800296ad63a509c748b562526b48fcb6f6204f68a88e39539
|
|
4
|
+
data.tar.gz: ed9e2f6d18ed262b7f7e42019f86489b9133f2916dbd71458edb9e62e480d67c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 43472e488023b9f77fdc283c56a7ec192de76c97978afc5085682a03cec929fa47823544f802d20eaebd0c70a2a4ed4cc9db90a906d7b6c9e683efbbce938153
|
|
7
|
+
data.tar.gz: 1e9c12b2f01f7ff2b15814d83c62b9cb33bfa6b9c2b526c0b00cbbacde99d7fbef15be030e96ea4cfae9454764679efbd83b2d91c8a5227c0f325a9038301829
|
data/lib/ask/graph/runner.rb
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
3
|
require "json"
|
|
4
|
+
require "securerandom"
|
|
4
5
|
require "timeout"
|
|
5
6
|
require "time"
|
|
6
7
|
|
|
@@ -42,6 +43,7 @@ module Ask
|
|
|
42
43
|
@step_timeout = step_timeout
|
|
43
44
|
@workflow_timeout = workflow_timeout
|
|
44
45
|
@completed_steps = []
|
|
46
|
+
@run_id = SecureRandom.hex(8)
|
|
45
47
|
end
|
|
46
48
|
|
|
47
49
|
def run(context)
|
|
@@ -203,7 +205,7 @@ module Ask
|
|
|
203
205
|
RUN_KEY = "ask:graph:run:%s"
|
|
204
206
|
|
|
205
207
|
def checkpoint_key
|
|
206
|
-
RUN_KEY % @declarations.object_id
|
|
208
|
+
RUN_KEY % "#{@declarations.object_id}:#{@run_id}"
|
|
207
209
|
end
|
|
208
210
|
|
|
209
211
|
def each_checkpoint_key
|
data/lib/ask/graph/version.rb
CHANGED