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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bbff52a6799c7c8d601f0fb6675455a157e922528829ffb8783d17625b37dae5
4
- data.tar.gz: 5bc2031adca9b357d012284f917c3a182700e5951f81086bd558765abddc2d36
3
+ metadata.gz: f48462361aab960800296ad63a509c748b562526b48fcb6f6204f68a88e39539
4
+ data.tar.gz: ed9e2f6d18ed262b7f7e42019f86489b9133f2916dbd71458edb9e62e480d67c
5
5
  SHA512:
6
- metadata.gz: 7019a8748975f56c4dce5704091c448f22d32edd6420a952ec80754adbdbe4d67a344a1ef09d5fa62438622d4261f355e08ce69d0ed01027dfc6ef230402023a
7
- data.tar.gz: 1975b37ce1874ba8459326652ff845cf33f6541314950f33f4884bd92a67bbe0ae9e29ad7a3b71a1e0b68525b9d702b178a80c37d7005184f72d05928b6c22ca
6
+ metadata.gz: 43472e488023b9f77fdc283c56a7ec192de76c97978afc5085682a03cec929fa47823544f802d20eaebd0c70a2a4ed4cc9db90a906d7b6c9e683efbbce938153
7
+ data.tar.gz: 1e9c12b2f01f7ff2b15814d83c62b9cb33bfa6b9c2b526c0b00cbbacde99d7fbef15be030e96ea4cfae9454764679efbd83b2d91c8a5227c0f325a9038301829
@@ -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.to_s
208
+ RUN_KEY % "#{@declarations.object_id}:#{@run_id}"
207
209
  end
208
210
 
209
211
  def each_checkpoint_key
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Ask
4
4
  class Graph
5
- VERSION = "0.7.6"
5
+ VERSION = "0.7.7"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ask-graph
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.6
4
+ version: 0.7.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kaka Ruto