beacon-biosignals / julia_pod

k8s native julia development
MIT License
10 stars 3 forks source link

why a job instead of just a pod? #44

Open ericphanson opened 2 years ago

ericphanson commented 2 years ago

I often see folks not clean up the job correctly bc deleting the pod doesn't remove the job. Is there a need for a job?

omus commented 2 years ago

Good question. We should be probably just use a pod instead with no downside

kolia commented 2 years ago

Hmm trying to remember why I switched to jobs instead of pods the way it was before.

I think it had to do with pods getting killed with violence and there not being any trace of what happened whatsoever. Jobs stay around and let me at least inspect logs and kubectl describe the pod for instance.

With better external logging / persistence of run pods, pods do make more sense.