Matthew-DWM commented on code in PR #9364:
URL: https://github.com/apache/texera/pull/9364#discussion_r4555846883
##########
amber/src/main/scala/org/apache/texera/amber/engine/architecture/pythonworker/PythonWorkflowWorker.scala:
##########
@@ -169,6 +187,31 @@ class PythonWorkflowWorker(
)
}
+ override def receive: Receive = handlePythonFailure orElse super.receive
+
+ // Throwing hands the failure to the coordinator's supervisor, which fails
the execution.
+ private def handlePythonFailure: Receive = {
+ case PythonWorkflowWorker.PythonProcessExited(code) =>
+ throw new WorkflowRuntimeException(
+
PythonWorkflowWorker.describeUnexpectedExit(workerConfig.workerId.name, code),
+ null,
Review Comment:
Done in b2cc844fc: removed the extra `null` argument. The other site went
away with the port-wait change.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]