Describe the bugPlanner.optimize_plan() current does not work with plans pulled from the server. The Cannot wire because "{}" already has an incoming wire occurs, suggesting that wires are not being properly removed from the plan during the optimization process
To Reproduce
Pull an unoptimize plan from the server and run Planner(plan).optimize_plan()
Expected behavior
Plan should be optimized (identical operations with identical inputs should be merged
Additional context
This points to a broader problem that Trident does not properly manage wires in plans. While the optimization works with completely new plans generated inside of Trident (before submission to an Aquarium server), optimization fails for existing plans on a server.
Describe the bug
Planner.optimize_plan()
current does not work with plans pulled from the server. TheCannot wire because "{}" already has an incoming wire
occurs, suggesting that wires are not being properly removed from the plan during the optimization processTo Reproduce Pull an unoptimize plan from the server and run
Planner(plan).optimize_plan()
Expected behavior Plan should be optimized (identical operations with identical inputs should be merged
Additional context This points to a broader problem that Trident does not properly manage wires in plans. While the optimization works with completely new plans generated inside of Trident (before submission to an Aquarium server), optimization fails for existing plans on a server.