Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add delay to scripts on failure #2

Open
bbockelm opened this issue Oct 8, 2023 · 0 comments
Open

Add delay to scripts on failure #2

bbockelm opened this issue Oct 8, 2023 · 0 comments

Comments

@bbockelm
Copy link
Collaborator

bbockelm commented Oct 8, 2023

The helper scripts (service node, prescript, and postscript) can rapidly churn due to HTCondor / DAGMan lacking any sort of cooloff mechanism.

On failure,

  1. Ensure we log the exception or failure to stderr.
  2. Add a random sleep, between 30 and 60 seconds, to the end of the script.

Since we don't keep state of how recently we've failed, we can't do an exponential backoff easily -- will need to do the flat delay.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant