-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
build hangs when conf.py blocks for TTY input; cannot kill hung build #1539
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
Comments
Hi thanks for the report! I agree we should make it possible to kill builds. But we need to decide where and when this will happen.
@iandennismiller what project did you have this problem with? Maybe we need to cleanup that by hand for now. |
#1524 improves container virtualization to a point that I would be comfortable deploying with it, and it will also address issues timing out long running builds or builds using excessive memory. However, there should probably be some in-code fail safe mechanism for killing builds that run long as well. Additionally, to address this issue directly, we should at least be killing STDIN on forked processes. |
RTD.org is now using containers for build encapsulation, which indirectly solves this problem. I don't think there is much we can do to limit things like processes waiting on STDIN anyways. Calling this resolved. |
I had a misconfigured conf.py that blocked for TTY input (it invoked
git
withless
). When I committed this and RTD began building the documentation, the builds started hanging. Now I have 3 builds that started ~45 minutes ago and they are still hanging. I'm concerned that I am clogging up the build queue with these 3 hung builds.I have fixed the issue with my project so that it will not block for TTY input anymore. However, I want to kill the old builds so I can free up the queue. I cannot find a way to do this. Worse, it seems like the builds are not being automatically killed even though they've been running for ~45 minutes.
One solution is to expose a UI element in the admin interface that would cause a build to be killed. Another solution is to automatically kill builds after a shorter amount of time.
The text was updated successfully, but these errors were encountered: