Adds new command to reset stuck invalidations #23021
Open
+572
−0
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.
Description:
Adds a new command to allow administrators to reset stuck invalidations that are incorrectly marked as "in progress."
Stuck invalidations can happen if an archiving process was interrupted, such as during a server crash or deployment, leaving invalidations in a stuck state. Resetting them ensures they can be reprocessed in the next archiving run.
Usage examples:
Reset all stuck invalidations for site ID 1 that were started more than an hour ago:
./console core:reset-invalidations --idsite=1 --older-than="1 hour ago"
Reset invalidations assigned to a specific host:
./console core:reset-invalidations --processing-host=archiver1.example.com
Perform a dry run to check which invalidations would be reset:
./console core:reset-invalidations --idsite=1 --older-than="1 hour ago" --dry-run
Reset invalidations for multiple sites and hosts:
./console core:reset-invalidations --idsite=1 --idsite=10 --processing-host=archiver1 --processing-host=archiver2
fixes #22971
Review