We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 339319a commit 558982cCopy full SHA for 558982c
2 files changed
wherobots/db/connection.py
@@ -153,6 +153,10 @@ def __listen(self):
153
f"Unsupported results format {result_format}"
154
)
155
156
+ case EventKind.ERROR:
157
+ query.state = ExecutionState.FAILED
158
+ error = message.get("message")
159
+ query.handler(OperationalError(error))
160
case _:
161
logging.warning("Received unknown %s event!", kind)
162
wherobots/db/constants.py
@@ -46,6 +46,7 @@ class RequestKind(StrEnum):
46
class EventKind(StrEnum):
47
STATE_UPDATED = auto()
48
EXECUTION_RESULT = auto()
49
+ ERROR = auto()
50
51
52
class ResultsFormat(StrEnum):
0 commit comments