Shared node changes rebuild the flows whose published copy uses them, not their drafts

This commit is contained in:
2026-10-14 23:34:47 +02:00
parent ef9d9824bb
commit b345587ab9
3 changed files with 35 additions and 4 deletions
+2 -1
View File
@@ -837,7 +837,8 @@ class FlowController:
async def reload_lib_users(self, ref: str) -> list[str]:
"""Rebuild the flows running a shared node whose source has changed."""
flows = sorted({usage.split(".", 1)[0] for usage in self.store.usages(ref)})
usages = self.store.usages(ref, draft=False)
flows = sorted({usage.split(".", 1)[0] for usage in usages})
for flow in flows:
await self.reload_flow(flow)
return flows