mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-07-05 11:22:11 +02:00
Fix initial flow
This commit is contained in:
parent
3689e75ffa
commit
731c3a34d4
1 changed files with 8 additions and 0 deletions
|
|
@ -49,6 +49,14 @@ class DefaultFlowStart(Initialiser):
|
||||||
|
|
||||||
async def run(self, ctx, old_flag, new_flag):
|
async def run(self, ctx, old_flag, new_flag):
|
||||||
|
|
||||||
|
workspaces = await ctx.config.keys(
|
||||||
|
"__workspaces__", "workspace",
|
||||||
|
)
|
||||||
|
if self.workspace not in workspaces:
|
||||||
|
raise RuntimeError(
|
||||||
|
f"Workspace {self.workspace!r} does not exist yet"
|
||||||
|
)
|
||||||
|
|
||||||
flow = ctx.make_flow_client(self.workspace)
|
flow = ctx.make_flow_client(self.workspace)
|
||||||
await flow.start()
|
await flow.start()
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue