This PR implements agent retries, which cause the agent to retry run requests if they failed due to infrastructural reasons. This pr does not cause the agent to retry scripts that were executed but returned an error.
Retries are performed with linear backoff as long as the request timeout of the script wouldn't allow it to finish after the next execution is due.
This additionally exposes request timeout to HTTP runners, so these can make smarter decisions about when to cancel a run.
This PR implements agent retries, which cause the agent to retry run requests if they failed due to infrastructural reasons. This pr does not cause the agent to retry scripts that were executed but returned an error.
Retries are performed with linear backoff as long as the request timeout of the script wouldn't allow it to finish after the next execution is due.
This additionally exposes request timeout to HTTP runners, so these can make smarter decisions about when to cancel a run.