uselagoon / remote-controller

A group of controllers for handling Lagoon builds and tasks in Kubernetes or Openshift
5 stars 1 forks source link

Timeout or cancel on long running builds #160

Closed shreddedbacon closed 1 year ago

shreddedbacon commented 2 years ago

If a build stays in a running state even if the build completed or failed and the resource was blocked from being updated, this can block subsequent builds from starting.

shreddedbacon commented 1 year ago

When the controller starts or is restarted and reconciles existing resources, it could check for the existence of a pod associated to the lagoonbuild resource, if none is present it can mark the build as failed?