Skip to content

Commit 7db0cfd

Browse files
authored
Add concurrent workflow execution capabilities (#4)
* concurrent workflow * updated deps * update tokio in readme * concurrent node registration simplification * simplified concurrent API * mix concurrent/sequential example * simd example * fmt + clippy * correct completed/failed counts * task update helper
1 parent bb75d1b commit 7db0cfd

19 files changed

Lines changed: 4253 additions & 507 deletions

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
/target
2+
**/.DS_Store

Cargo.lock

Lines changed: 49 additions & 22 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,22 +13,31 @@ authors = ["Nassor Frazier-Silva"]
1313

1414
[dependencies]
1515
async-trait = "0.1"
16-
tokio = { version = "1.0", features = ["full"] }
16+
tokio = { version = "1.47", features = ["full"] }
1717
rand = "0.9"
1818
cron = "0.15"
1919
chrono = { version = "0.4", features = ["serde"] }
20+
futures = "0.3"
2021

2122
[dev-dependencies]
2223
cargo-audit = "0.21.2"
23-
criterion = { version = "0.6", features = ["html_reports", "async_tokio"] }
24-
futures = "0.3"
24+
criterion = { version = "0.7", features = ["html_reports", "async_tokio"] }
2525
reqwest = { version = "0.12", features = ["json"] }
2626
rig-core = "0.15"
27+
wide = "0.7"
2728

2829
[[example]]
2930
name = "ai_workflow_yes_and"
3031
path = "examples/ai_workflow_yes_and.rs"
3132

33+
[[example]]
34+
name = "workflow_concurrent"
35+
path = "examples/workflow_concurrent.rs"
36+
37+
[[example]]
38+
name = "scheduler_mixed_workflows"
39+
path = "examples/scheduler_mixed_workflows.rs"
40+
3241
[[example]]
3342
name = "workflow_simple"
3443
path = "examples/workflow_simple.rs"
@@ -41,6 +50,10 @@ path = "examples/workflow_book_prepositions.rs"
4150
name = "workflow_negotiation"
4251
path = "examples/workflow_negotiation.rs"
4352

53+
[[example]]
54+
name = "workflow_simd_matrix_pipeline"
55+
path = "examples/workflow_simd_matrix_pipeline.rs"
56+
4457
[[example]]
4558
name = "workflow_stack_store"
4659
path = "examples/workflow_stack_store.rs"

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# MIT License
1+
MIT License
22

33
Copyright (c) 2025 Nassor Frazier-Silva
44

0 commit comments

Comments
 (0)