TheRacetrack / racetrack

An opinionated framework for deploying, managing, and serving application workloads
https://theracetrack.github.io/racetrack/
Apache License 2.0
28 stars 5 forks source link

Avoid redirecting version aliases to dead Jobs #437

Closed iszulcdeepsense closed 2 months ago

iszulcdeepsense commented 3 months ago

When a job doesn't start successfully, it's still considered a living job, and the version alias (like latest) will point towards it. However, this isn't the desired outcome. We want the version alias to refer to the latest stable job, that is, a job that has been initiated without any issues.

Let's introduce new INITIALIZING status for the jobs to distinguish these kind of jobs from the ones that are flawlessly RUNNING. This way, the ERROR status will be reserved solely for the unexpected issues that arise after a job has been successfully initialized.