Refresh the component graph (and pipeline formulas) when it is updated #1079
Labels
part:data-pipeline
Affects the data pipeline
part:microgrid
Affects the interactions with the microgrid
type:enhancement
New feature or enhancement visitble to users
Milestone
What's needed?
We need to be able to pick up and adapt to changes in the component graph dynamically. This means we need to rebuild formulas in the data pipeline and power manager (at least) to accommodate to the new graph.
Proposed solution
Alternatives
Polling
The solution we can implement now would be to poll the microgrid API (fetch components and connections) every some amount of time, compare the new component graph to the current one, and trigger an update if it changed.
Event based
We could have a more efficient way to detect changes if the microgrid API is extended to add an RPC that streams updates to the component graph.
Updates
We would need to update all the affected formulas in the data pipeline, like formulas in
*Pool
s, etc. and the power manager to also adapt to the new graph.The text was updated successfully, but these errors were encountered: