mod bridge¶
- module bridge¶
Enums
Structs and Unions
- struct PyScheduler(Scheduler)¶
PyO3 class that bridges between the pure-rust Scheduler and its python counterpart Only those methods that do something beyond forwarding calls with string interning have public docstrings. For the rest, see either the Python or Rust scheduler. (Methods being marked public is purely a documentation detail because the PyO3 macro makes them so anyway)
Implementations
- impl PyScheduler¶
Functions
- fn node_is_done(&self, node: String, epoch: Epoch) -> PyResult<bool>¶
Check if a node has been either run or expired in the given epoch
Similarly to node_is_ready, raises NotAddedError if node has not been previously added.
- fn node_is_ready(&self, node: String, epoch: Epoch, subepochs: bool) -> PyResult<bool>¶
Check if a node is ready in a given epoch without marking it as
outRaises a NotAdded error if the node has not been previously added to the graph, rather than automatically interning: differentiates simply not being ready from not existing at all