In the case a pod is scheduled on a node, then evicted, you can end up
in a state where you search for the pod forever when the job was already
know to have failed:
Error from server (NotFound): pods "ios-714750-zjyo7cyw-gsnzh" not found
Error from server (NotFound): pods "ios-714750-zjyo7cyw-gsnzh" not found
Error from server (NotFound): pods "ios-714750-zjyo7cyw-gsnzh" not found
Error from server (NotFound): pods "ios-714750-zjyo7cyw-gsnzh" not found
Error from server (NotFound): pods "ios-714750-zjyo7cyw-gsnzh" not found
This checks the job status and exits if it has failed in that case
In the case a pod is scheduled on a node, then evicted, you can end up in a state where you search for the pod forever when the job was already know to have failed:
This checks the job status and exits if it has failed in that case