async-graph 0.1.0 → 0.1.1
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/.gitignore +1 -0
- data/README.erb +2 -2
- data/README.md +2 -2
- data/Rakefile +1 -1
- data/async-graph.gemspec +5 -5
- data/bin/console +1 -1
- data/examples/app_graph.rb +1 -1
- data/lib/{async_graph → async-graph}/version.rb +1 -1
- data/lib/async-graph.rb +4 -0
- data/spec/spec_helper.rb +1 -1
- metadata +8 -10
- data/examples/graph_states.json +0 -42
- data/examples/jobs.json +0 -50
- data/lib/async_graph.rb +0 -4
- /data/lib/{async_graph → async-graph}/graph.rb +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d3e3bf481043bd72452272103c97734117490058de259428a68eef31fd264d02
|
|
4
|
+
data.tar.gz: fe632f6b44ae151a7a84de797f87dcbabfea0fa657f1f2fc89e44346ae2f0a04
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: be4936d2a7d36d3935d179d74b7bf5715c1065f30e825b5e1a2e0ab04ee1f6cbbf528e736967c8c099df55d0b59bb72f39d4d906d964a84e67c9666215637edb
|
|
7
|
+
data.tar.gz: cde66865264df5b7d647c2d6704d8fed789c54e25ab7b3c27fe57c2d52e8ca63c01218bcf38d6db0b95d45a825e2641dd90a34db88d388e2426d5cd0861dfba4
|
data/.gitignore
CHANGED
data/README.erb
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# AsyncGraph
|
|
2
2
|
|
|
3
|
-
AsyncGraph is a
|
|
3
|
+
AsyncGraph is a Ruby runtime for graph-style workflows that suspend on external work,
|
|
4
4
|
store jobs outside the graph, and resume on later passes. It supports:
|
|
5
5
|
|
|
6
6
|
- single-step graph execution
|
|
@@ -17,7 +17,7 @@ gem install async-graph
|
|
|
17
17
|
## Example
|
|
18
18
|
|
|
19
19
|
```ruby
|
|
20
|
-
require
|
|
20
|
+
require 'async-graph'
|
|
21
21
|
|
|
22
22
|
graph = AsyncGraph::Graph.new do
|
|
23
23
|
node :fetch_user do |state, await|
|
data/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# AsyncGraph
|
|
2
2
|
|
|
3
|
-
AsyncGraph is a
|
|
3
|
+
AsyncGraph is a Ruby runtime for graph-style workflows that suspend on external work,
|
|
4
4
|
store jobs outside the graph, and resume on later passes. It supports:
|
|
5
5
|
|
|
6
6
|
- single-step graph execution
|
|
@@ -17,7 +17,7 @@ gem install async-graph
|
|
|
17
17
|
## Example
|
|
18
18
|
|
|
19
19
|
```ruby
|
|
20
|
-
require
|
|
20
|
+
require 'async-graph'
|
|
21
21
|
|
|
22
22
|
graph = AsyncGraph::Graph.new do
|
|
23
23
|
node :fetch_user do |state, await|
|
data/Rakefile
CHANGED
data/async-graph.gemspec
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
require_relative "lib/
|
|
3
|
+
require_relative "lib/async-graph/version"
|
|
4
4
|
|
|
5
5
|
Gem::Specification.new do |spec|
|
|
6
6
|
spec.name = "async-graph"
|
|
7
7
|
spec.version = AsyncGraph::VERSION
|
|
8
|
-
spec.summary = "
|
|
8
|
+
spec.summary = "Async Graph runtime with external job scheduling"
|
|
9
9
|
spec.description = "A minimal Ruby graph runtime that suspends on external work and resumes later."
|
|
10
|
-
spec.authors = ["
|
|
10
|
+
spec.authors = ["Artem Borodkin"]
|
|
11
11
|
spec.email = ["author@email.address"]
|
|
12
12
|
spec.files = Dir[
|
|
13
13
|
"{bin,examples,lib,spec}/**/*",
|
|
@@ -25,8 +25,8 @@ Gem::Specification.new do |spec|
|
|
|
25
25
|
spec.require_paths = ["lib"]
|
|
26
26
|
spec.homepage = "https://rubygems.org/gems/async-graph"
|
|
27
27
|
spec.license = "MIT"
|
|
28
|
-
spec.metadata = { "source_code_uri" => "https://github.com/
|
|
29
|
-
spec.required_ruby_version = ">= #{File.read(File.join(__dir__, ".ruby-version")).strip}"
|
|
28
|
+
spec.metadata = { "source_code_uri" => "https://github.com/artyomb/async-graph" }
|
|
29
|
+
# spec.required_ruby_version = ">= #{File.read(File.join(__dir__, ".ruby-version")).strip}"
|
|
30
30
|
|
|
31
31
|
spec.add_development_dependency "rake", "~> 13.0"
|
|
32
32
|
spec.add_development_dependency "rspec", "~> 3.10"
|
data/bin/console
CHANGED
data/examples/app_graph.rb
CHANGED
data/lib/async-graph.rb
ADDED
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: async-graph
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
|
-
-
|
|
7
|
+
- Artem Borodkin
|
|
8
8
|
bindir: bin
|
|
9
9
|
cert_chain: []
|
|
10
10
|
date: 1980-01-02 00:00:00.000000000 Z
|
|
@@ -116,20 +116,18 @@ files:
|
|
|
116
116
|
- examples/app_graph.rb
|
|
117
117
|
- examples/execute_jobs.rb
|
|
118
118
|
- examples/graph_run.rb
|
|
119
|
-
- examples/graph_states.json
|
|
120
|
-
- examples/jobs.json
|
|
121
119
|
- examples/reset.rb
|
|
122
120
|
- examples/run.sh
|
|
123
|
-
- lib/
|
|
124
|
-
- lib/
|
|
125
|
-
- lib/
|
|
121
|
+
- lib/async-graph.rb
|
|
122
|
+
- lib/async-graph/graph.rb
|
|
123
|
+
- lib/async-graph/version.rb
|
|
126
124
|
- spec/async_graph_spec.rb
|
|
127
125
|
- spec/spec_helper.rb
|
|
128
126
|
homepage: https://rubygems.org/gems/async-graph
|
|
129
127
|
licenses:
|
|
130
128
|
- MIT
|
|
131
129
|
metadata:
|
|
132
|
-
source_code_uri: https://github.com/
|
|
130
|
+
source_code_uri: https://github.com/artyomb/async-graph
|
|
133
131
|
rdoc_options: []
|
|
134
132
|
require_paths:
|
|
135
133
|
- lib
|
|
@@ -137,7 +135,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
137
135
|
requirements:
|
|
138
136
|
- - ">="
|
|
139
137
|
- !ruby/object:Gem::Version
|
|
140
|
-
version:
|
|
138
|
+
version: '0'
|
|
141
139
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
142
140
|
requirements:
|
|
143
141
|
- - ">="
|
|
@@ -146,5 +144,5 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
146
144
|
requirements: []
|
|
147
145
|
rubygems_version: 3.6.7
|
|
148
146
|
specification_version: 4
|
|
149
|
-
summary:
|
|
147
|
+
summary: Async Graph runtime with external job scheduling
|
|
150
148
|
test_files: []
|
data/examples/graph_states.json
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"graphs": [
|
|
3
|
-
{
|
|
4
|
-
"graph_uid": "graph-1",
|
|
5
|
-
"status": "finished",
|
|
6
|
-
"tokens": [],
|
|
7
|
-
"joins": {},
|
|
8
|
-
"result": {
|
|
9
|
-
"user_id": 7,
|
|
10
|
-
"left_ready": true,
|
|
11
|
-
"right_ready": true,
|
|
12
|
-
"left": {
|
|
13
|
-
"id": 7,
|
|
14
|
-
"name": "Ada-7"
|
|
15
|
-
},
|
|
16
|
-
"right": {
|
|
17
|
-
"score": 70
|
|
18
|
-
},
|
|
19
|
-
"message": "Ada-7 score=70"
|
|
20
|
-
}
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
"graph_uid": "graph-2",
|
|
24
|
-
"status": "finished",
|
|
25
|
-
"tokens": [],
|
|
26
|
-
"joins": {},
|
|
27
|
-
"result": {
|
|
28
|
-
"user_id": 8,
|
|
29
|
-
"left_ready": true,
|
|
30
|
-
"right_ready": true,
|
|
31
|
-
"left": {
|
|
32
|
-
"id": 8,
|
|
33
|
-
"name": "Ada-8"
|
|
34
|
-
},
|
|
35
|
-
"right": {
|
|
36
|
-
"score": 80
|
|
37
|
-
},
|
|
38
|
-
"message": "Ada-8 score=80"
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
]
|
|
42
|
-
}
|
data/examples/jobs.json
DELETED
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"jobs": [
|
|
3
|
-
{
|
|
4
|
-
"job_uid": "job-1",
|
|
5
|
-
"kind": "fetch_profile",
|
|
6
|
-
"payload": {
|
|
7
|
-
"user_id": 7
|
|
8
|
-
},
|
|
9
|
-
"status": "done",
|
|
10
|
-
"result": {
|
|
11
|
-
"id": 7,
|
|
12
|
-
"name": "Ada-7"
|
|
13
|
-
}
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
"job_uid": "job-2",
|
|
17
|
-
"kind": "fetch_score",
|
|
18
|
-
"payload": {
|
|
19
|
-
"user_id": 7
|
|
20
|
-
},
|
|
21
|
-
"status": "done",
|
|
22
|
-
"result": {
|
|
23
|
-
"score": 70
|
|
24
|
-
}
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
"job_uid": "job-3",
|
|
28
|
-
"kind": "fetch_profile",
|
|
29
|
-
"payload": {
|
|
30
|
-
"user_id": 8
|
|
31
|
-
},
|
|
32
|
-
"status": "done",
|
|
33
|
-
"result": {
|
|
34
|
-
"id": 8,
|
|
35
|
-
"name": "Ada-8"
|
|
36
|
-
}
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
"job_uid": "job-4",
|
|
40
|
-
"kind": "fetch_score",
|
|
41
|
-
"payload": {
|
|
42
|
-
"user_id": 8
|
|
43
|
-
},
|
|
44
|
-
"status": "done",
|
|
45
|
-
"result": {
|
|
46
|
-
"score": 80
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
]
|
|
50
|
-
}
|
data/lib/async_graph.rb
DELETED
|
File without changes
|