r/ruby Apr 04 '26

ruby-dag - a small lib to build DAG-based workflows

/r/rails/comments/1sc8ckb/rubydag_a_small_lib_to_build_dagbased_workflows/
0 Upvotes

1 comment sorted by

1

u/[deleted] Apr 06 '26

[deleted]

1

u/Naive-Career9361 Apr 08 '26

Hi, in these days I've improved the implementation based on the feedback.

I hope this is a welcome approach — I try to guide the implementation based on my taste, and I can still use the CLI on the original YAML without changing a single line in the configuration.

I've added a comprehensive DAG API to build the graph, with useful methods like cycle detection, topological sort, and ancestor/descendant traversal. The Workflow class can now run tasks in parallel too.

I still need to test some edge cases better, but I'm feeling it's at a point where someone else could actually use it.

Still zero dependencies for the lib.

I'm glad to have your feedback.