I have a cluster running some jobs, there's a job that executes a pod. that pod is completed while in process, like 1+3=5 now it should display 5 but it stops in 1+3 and its status is to complete. I don't know what can cause a pod to complete without executing the whole code. any help or thoughts on it would help a lot.
Detail:
I have a case now,
console.log("Opening in ECS ");<<--in one case pod successfully terminates here -->>
try {
    await funcy1();<<-- an async function -->>
    console.log("opening in ECS end");<--in second case pod successfully terminates here-->>
} catch (error) {
    throw error;
}
now the pod is completed at stated line, if there's an error it should be thrown (which is logged). But I cannot see any log. It's just pod is completed on specified line which shouldn't be the case.
some erros from pods descriptions are:
 State:        Terminated
 Reason:       Error
 Exit Code:    255and
 State:        Terminated
 Reason:       Error
 Exit Code:    137and
 State:        Terminated
 Reason:       Completed
 Exit Code:    0So the issue was not specifying resources of the pod, just thought it can help someone.