-
Notifications
You must be signed in to change notification settings - Fork 177
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Current behavior
Standard Driver prunes the DAG to only execute nodes that are not overridden using overrides. The AsyncDriver does not seem to do this, resulting in nodes getting run that shouldn't.
I believe it's just a missed arg where overrides should be passed in to self.graph.get_upstream_nodes(final_vars, inputs) here: https://github.com/DAGWorks-Inc/hamilton/blob/main/hamilton/async_driver.py#L290
That seems to be present in the standard driver: https://github.com/DAGWorks-Inc/hamilton/blob/main/hamilton/driver.py#L645
Stack Traces
(If applicable)
Screenshots
(If applicable)
Steps to replicate behavior
- Build AsyncDriver
- Provide overrides on driver.execute
- Overridden nodes still execute
Library & System Information
Python 3.11, Hamilton 1.70
Expected behavior
Overridden nodes should not run on driver.execute
Additional context
Add any other context about the problem here.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working