Releases: paulomtts/grafo
Releases · paulomtts/grafo
Release list
v0.3.5
v0.3.4
Changes
- Executor: Enqueue nodes only when all parents have completed (check
all(e.is_set() for e in child._parent_events)before enqueuing). Removes in-run parent wait and its timeout. - Node: Execution timeout now applies to the node's own run:
_run(): coroutine wrapped inasyncio.wait_for(..., timeout=self._timeout)._run_yielding(): producer appends to_aggregated_outputand puts on queue; consumer enforces deadline and cancels producer on timeout.
- Tests:
test_run_timeout(run timeout),test_yielding_timeout(yielding timeout),test_errorassertslen(executor.errors) == 1.
Enh: Small Code Improvements & Improved Docs
Many corrections and improvements to the docs.
Enh: AUTO forwarding, forwarding signature checks & improved docs
Refactor: improve forwarding API with forward parameter and AUTO inference
BREAKING CHANGE: Rename forward_as parameter to forward in Node.connect()
- Replace
forward_aswithforwardfor clearer API naming - Add
Node.AUTOfor automatic parameter inference when child has single eligible parameter - Add
ForwardingParameterErrorfor invalid parameter forwarding - Add
AutoForwardErrorfor ambiguous AUTO forwarding scenarios - Simplify
on_before_forwardcallback API: can be passed directly or as tuple - Improve parameter validation: check parameter existence at connect-time
- Update callback signature:
on_before_forwardreceives forwarded value as positional or keyword-onlyforward_data - Update all documentation and examples to reflect new API
- Expand test coverage for new features and edge cases
Feat: documentation
Added a comprehensive documentation (thanks Claude!).
Minor Version Bump
- Added type validation for node outputs
- Improved testing coverage & code
- TreeExecutor now accepts a single generic type
Hotifx: .get_leaves() type signature
v0.2.36 fix: .get_leaves() type signature
Minor Improvements
- A few optimizations around how the number of workers is setup in the
TreeExecutor - Initial number of workers is now setup correctly for multi-root trees
- Some properties of
TreeExecutorare now acessible
Fix: version number
v0.2.34 fix: version number
Hotfix: .output typing issues
v0.2.33 fix: .output type