You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using supervisord to restart a process that is exiting upon start, it seems the backoff procedure just adds 1 second to the backoff forever.
Is it possible to add a config option such as maxbackoff=30 or similar so that we can force a restart attempt at least every 30 seconds even when the process it not starting continually.
It might be some external system that needs to be fixed in order for the process to start and this could take some time, but supervisor should keep retrying so the process comes back up in a timely manner when the external system is fixed.
If the external system is down for a day
Would like to use something like:
autorestart=true
startretries=2147483647
maxbackoff=30
So that supervisor will retry at least every 30 seconds.
I think this config option makes sense and I'd like to use it myself.
An issue with the PR is that you've set the default to 60 seconds which is effectively changing the existing behaviour for users currently providing a large startretries value.
I think if you set the default to 0 and then in supervisor/process.py only enforce the limit check if the maxbackoff is non 0 then the change would be safe to merge.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.