<#5177 [Core feature] Handle job failure to fail f...
# flyte-github
c
#5177 [Core feature] Handle job failure to fail faster and improve UX Issue created by ysysys3074 on <!date^1712211736^{date_short}|2024-04-04T06:22:16Z> ### Motivation: Why do you think this is important? For TF/Pytorch/MPI/Ray jobs, when they fails for some common reasons, e.g. "invalidImageName" or "imagePullBackOff(due to bad image)", the job will queue for long time because we currently only fetch condition status from the Job, but these failure will not pass failure status immediately to the job pod spec so the job can not fail quickly. ### Goal: What should the final outcome look like, ideally? For some common issue such as "invalidImageName" or "imagePullBackOff(due to bad image)", the job can fast fail instead of queue for very long time. We can brainstorm how to resolve this on flyte layer(preferred) or training operator layer. ### Describe alternatives you've considered Also maybe we can surface k8s events better in UI so user will have idea what is going on under the hood, if the pod run into those issues, we can find way to fast fail the job according to the events. ### Propose: Link/Inline OR Additional context No response ### Are you sure this issue hasn't been raised already? • Yes ### Have you read the Code of Conduct? • Yes flyteorg/flyte