concourse / pool-resource

atomically manages the state of the world (e.g. external environments)
Apache License 2.0
57 stars 36 forks source link

Ability to specify maximum number of retries? #36

Closed aegershman closed 6 years ago

aegershman commented 6 years ago

tl;dr: Is there a way to specify a "max retry" count? Or some other way to have the job fail after a certain amount of time?

My concern is that my pipelines/locks could somehow work themselves into an invalid state where a lock can never be aquired, and my jobs will continue to poll-wait until the end of time. If, for example, after 12 hours of trying to aquire a lock to make changes to an Ops Manager, I'd like the job to simply fail, so that I can receive a slack notification saying the job has failed. If the lock poll-waits and never gives up, I might not know if something has gone wrong unless I go look at the pipelines myself.

Thank you for your time, I appreciate it.

risicle commented 8 months ago

Could you achieve this with the generic timeout step parameter? https://concourse-ci.org/timeout-step.html