-
Notifications
You must be signed in to change notification settings - Fork 92
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
feat: add maintenance mode for upgrades #2211
Merged
Merged
Conversation
This file contains 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
iamKunalGupta
force-pushed
the
feat/maintenance-mode
branch
from
November 1, 2024 03:50
fb17402
to
ec62418
Compare
iamKunalGupta
changed the title
feat: add maintenance mode
feat: add maintenance mode for upgrades
Nov 1, 2024
serprex
reviewed
Nov 1, 2024
serprex
reviewed
Nov 1, 2024
serprex
reviewed
Nov 1, 2024
serprex
reviewed
Nov 1, 2024
serprex
reviewed
Nov 1, 2024
serprex
reviewed
Nov 1, 2024
serprex
reviewed
Nov 1, 2024
serprex
reviewed
Nov 1, 2024
serprex
reviewed
Nov 1, 2024
serprex
reviewed
Nov 1, 2024
serprex
reviewed
Nov 1, 2024
serprex
reviewed
Nov 1, 2024
serprex
reviewed
Nov 1, 2024
serprex
reviewed
Nov 1, 2024
serprex
reviewed
Nov 1, 2024
serprex
reviewed
Nov 1, 2024
serprex
reviewed
Nov 1, 2024
serprex
reviewed
Nov 1, 2024
serprex
reviewed
Nov 1, 2024
serprex
reviewed
Nov 1, 2024
serprex
reviewed
Nov 1, 2024
serprex
reviewed
Nov 1, 2024
serprex
reviewed
Nov 1, 2024
heavycrystal
reviewed
Nov 1, 2024
logEvery time.Duration, | ||
alertEvery time.Duration, | ||
) (protos.FlowStatus, error) { | ||
// In case a mirror was just kicked off, it shows up in the running state, we wait for a bit before checking for snapshot |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this really shouldn't happen, seems like a bug
iamKunalGupta
force-pushed
the
feat/maintenance-mode
branch
from
November 1, 2024 21:13
b9db36e
to
ce78585
Compare
- also shift to tickers for waiting
iamKunalGupta
force-pushed
the
feat/maintenance-mode
branch
from
November 14, 2024 14:50
a77f719
to
c382119
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
PEERDB_MAINTENANCE_MODE_ENABLED
)StartMaintenance
- for pre-upgrade, responsible forEndMaintenance
- for post-upgrade, responsible forStart
andEnd
), mirrors cannot be mutated/created in any way,Ready
/Maintenance
which can be used for UI changes later.There are 2 ways to trigger these 2 workflows:
maintenance
entrypoint with the respective argsA new task queue is added so that the maintenance tasks can be spun up even during pre-upgrade hooks (from version earlier than ones containing this PR) and this also ensures that always the latest version of the maintenance flows run irrespective of the old version.