Add workflow baseline orchestration contracts
This commit is contained in:
@@ -35,6 +35,12 @@ async def lifespan(app: FastAPI):
|
||||
api_key_secret=settings.dev_bootstrap_api_key,
|
||||
user_password=settings.dev_bootstrap_password,
|
||||
)
|
||||
lifecycle = getattr(app.state, "govoplan_lifecycle", None)
|
||||
if lifecycle is not None and hasattr(
|
||||
lifecycle,
|
||||
"reconcile_workflow_definitions",
|
||||
):
|
||||
lifecycle.reconcile_workflow_definitions()
|
||||
yield
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user