mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-04-26 00:46:22 +02:00
Fix/get multiple flows working (#355)
* Reduce log output * Fix problems
This commit is contained in:
parent
9508ac6c69
commit
027b52cd7c
8 changed files with 19 additions and 10 deletions
|
|
@ -27,6 +27,8 @@ class FlowConfig:
|
|||
|
||||
self.config["flow-classes"][msg.class_name] = msg.class_definition
|
||||
|
||||
self.config.version += 1
|
||||
|
||||
await self.config.push()
|
||||
|
||||
return FlowResponse(
|
||||
|
|
@ -39,6 +41,8 @@ class FlowConfig:
|
|||
|
||||
del self.config["flow-classes"][msg.class_name]
|
||||
|
||||
self.config.version += 1
|
||||
|
||||
await self.config.push()
|
||||
|
||||
return FlowResponse(
|
||||
|
|
@ -135,6 +139,8 @@ class FlowConfig:
|
|||
"interfaces": interfaces,
|
||||
})
|
||||
|
||||
self.config.version += 1
|
||||
|
||||
await self.config.push()
|
||||
|
||||
return FlowResponse(
|
||||
|
|
@ -186,6 +192,8 @@ class FlowConfig:
|
|||
if msg.flow_id in self.config["flows"]:
|
||||
del self.config["flows"][msg.flow_id]
|
||||
|
||||
self.config.version += 1
|
||||
|
||||
await self.config.push()
|
||||
|
||||
return FlowResponse(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue