-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Builds: check celery and redis before marking a build as stale
Previously, we were checking only if the build has been running for a long-long time (2hs) before marking it as stale. This new approach tries to reduce this time to 15m and adds extra checks on top of that: - the build has been running for more than 15 minutes - the build is not being executed by Celery (celery.inspect.active) - the build is not queued in Redis queues When all of these are `True` we mark the build as stale.
- Loading branch information
Showing
2 changed files
with
115 additions
and
31 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
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