-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #303: Pause maintenance between repos during same …
…task The `PauseVerb` was added along with a lot of other things in #292. It creates a file storing a timestamp for marking how long to pause maintenance. As noted in #284, this was inadequate. If there are a lot of enlistments and a user runs `scalar pause` in the middle of iterating over those enlistments, the maintenance task will continue to run over all of those enlistments. Now, stop before triggering a new `scalar run <task>` process. Modify the markdown with the details for how many maintenance tasks completed and whether or not it was halted due to a pause. Here is a formatted version of a trace event for a task during pause: ``` [2020-01-22 17:17:57.7293 -05:00] RunMaintenanceTaskForRepos_MaintenanceSummary { "task":"loose-objects", "UserId":"S-1-5-21-4082248826-4152932973-4176629329-1001", "SessionId":1, "traceMessage":"Maintenance is paused until 1/23/2020 4:14:44 AM.", "reposInRegistryForUser":11, "reposSkipped":11, "reposSuccessfullyRemoved":0, "repoRemovalFailures":0, "reposMaintained":0, "haltedForPause":true } ```
- Loading branch information
Showing
1 changed file
with
44 additions
and
18 deletions.
There are no files selected for viewing
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