Update CtrlExMem_CoderFlow.py
Browse files- CtrlExMem_CoderFlow.py +3 -3
CtrlExMem_CoderFlow.py
CHANGED
@@ -6,7 +6,7 @@ from flows.base_flows import CircularFlow
|
|
6 |
class CtrlExMem_CoderFlow(CtrlExMemFlow):
|
7 |
def _on_reach_max_round(self):
|
8 |
self._state_update_dict({
|
9 |
-
"
|
10 |
"summary": "CoderFlow: the maximum amount of rounds was reached before the flow has done the job",
|
11 |
"status": "unfinished"
|
12 |
})
|
@@ -17,7 +17,7 @@ class CtrlExMem_CoderFlow(CtrlExMemFlow):
|
|
17 |
if command == "finish":
|
18 |
return {
|
19 |
"EARLY_EXIT": True,
|
20 |
-
"
|
21 |
"summary": "Coder: " + output_payload["command_args"]["summary"],
|
22 |
"status": "finished"
|
23 |
}
|
@@ -25,7 +25,7 @@ class CtrlExMem_CoderFlow(CtrlExMemFlow):
|
|
25 |
# ~~~ return the manual quit status ~~~
|
26 |
return {
|
27 |
"EARLY_EXIT": True,
|
28 |
-
"
|
29 |
"summary": "Coder: process terminated by the user explicitly, nothing generated",
|
30 |
"status": "unfinished"
|
31 |
}
|
|
|
6 |
class CtrlExMem_CoderFlow(CtrlExMemFlow):
|
7 |
def _on_reach_max_round(self):
|
8 |
self._state_update_dict({
|
9 |
+
"result": "the maximum amount of rounds was reached before the coder flow has done the job",
|
10 |
"summary": "CoderFlow: the maximum amount of rounds was reached before the flow has done the job",
|
11 |
"status": "unfinished"
|
12 |
})
|
|
|
17 |
if command == "finish":
|
18 |
return {
|
19 |
"EARLY_EXIT": True,
|
20 |
+
"result": output_payload["command_args"]["summary"],
|
21 |
"summary": "Coder: " + output_payload["command_args"]["summary"],
|
22 |
"status": "finished"
|
23 |
}
|
|
|
25 |
# ~~~ return the manual quit status ~~~
|
26 |
return {
|
27 |
"EARLY_EXIT": True,
|
28 |
+
"result": "CoderFlow was terminated explicitly by the user, process is unfinished",
|
29 |
"summary": "Coder: process terminated by the user explicitly, nothing generated",
|
30 |
"status": "unfinished"
|
31 |
}
|