2 ms·
> We need to: > Build a dependency graph (which jobs need which other jobs) > Execute jobs in topological order (respecting dependencies) For what it’s worth
by halfcat 11mo ago
> We need to:
> Build a dependency graph (which jobs need which other jobs)
> Execute jobs in topological order (respecting dependencies)
For what it’s worth, Python has graphlib.TopologicalSorter in the standard library that can do this, including grouping tasks that can be run in parallel:
https://docs.python.org/3/library/graphlib.html https://docs.python.org/3/library/graphlib.html
- skylurk 11mo agoOne of the best real "batteries" added in recent years.