-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
backend: implement timeout fail-safe in case copr-rpmbuild hangs up
Fix #3343 I am not 100% sure this PR will fully prevent issues like #3343 but I am trying to address cases like this here. Normally, copr-rpmbuild is responsible for terminating itself when the build timeout is reached. This is indicated by the "Copr timeout => sending INT" message in the builder-live.log. This proves itself to not be reliable enough because sometimes the whole copr-rpmbuild process hangs up, doesn't terminate itself, and the build gets stuck in the running state for months. This PR implements a fail-safe mechanism on backend, which waits a short period of time after the timeout is reached and then terminates the build. Backend terminates the timeouted builds by connecting to the broken builders and running `copr-rpmbuild-cancel` on them. This successfully terminated the currently stuck builds mentioned by #3343.
- Loading branch information
Showing
2 changed files
with
22 additions
and
7 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