Skip to content

Commit

Permalink
Use fail instead of change_state(failed) in K8S executor (#35900)
Browse files Browse the repository at this point in the history
  • Loading branch information
hussein-awala committed Nov 28, 2023
1 parent 930f165 commit f525937
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -423,7 +423,7 @@ def sync(self) -> None:
if e.status in (400, 422):
self.log.error("Pod creation failed with reason %r. Failing task", e.reason)
key, _, _, _ = task
self.change_state(key, TaskInstanceState.FAILED, e)
self.fail(key, e)
else:
self.log.warning(
"ApiException when attempting to run task, re-queueing. Reason: %r. Message: %s",
Expand Down

0 comments on commit f525937

Please sign in to comment.