Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion servc/svc/com/worker/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ def run_resolver(
and statuscode.value >= 400
and statuscode.value < 500
):
print("Exiting due to 5xx error", error, flush=True)
print("Exiting due to 4xx error", error, flush=True)
exit(1)

return statuscode, response
Expand Down Expand Up @@ -215,6 +215,9 @@ def inputProcessor(self, message: Any) -> StatusCode:
message["id"], "Method not found", StatusCode.METHOD_NOT_FOUND
),
)
if self._config.get(f"conf.{self.name}.exiton4xx"):
print("Exiting due to 4xx error:", "Method not found", flush=True)
exit(1)
return StatusCode.METHOD_NOT_FOUND

continueExecution = evaluate_pre_hooks(
Expand Down