Found a circular dependency causing bootstrap to fail

TemplateSeed and WorkspaceInit now run pre-gate. They'll
write templates and register the default workspace before the gate
checks flow-svc, breaking the circular dependency.
This commit is contained in:
Cyber MacGeddon 2026-05-05 15:56:42 +01:00
parent 9f2bfbce0c
commit 1ee56b715e
2 changed files with 4 additions and 0 deletions

View file

@ -39,6 +39,8 @@ TEMPLATE_WORKSPACE = "__template__"
class TemplateSeed(Initialiser):
wait_for_services = False
def __init__(self, config_file, overwrite=False, **kwargs):
super().__init__(**kwargs)
if not config_file:

View file

@ -33,6 +33,8 @@ TEMPLATE_WORKSPACE = "__template__"
class WorkspaceInit(Initialiser):
wait_for_services = False
def __init__(
self,
workspace="default",