-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Allow user to kill a build #2471
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
Currently, processes can get stuck in a invalid building state. These projects are not building anymore, their state was just never updated after a hard failure. Offering a cancel build task option might be a useful feature though. It is confusing for builds to remain around. I'd probably work on ensuring build status is valid and always updated first however. A feature like this would require us to rework the project build task a bit. Flow is more like:
Not exactly sure of what happens here with the celery interaction. We would require a "soft" kill of the task, because we need to go through cleanup and reporting efforts. This probably goes hand in hand with ensuring a task that times out will clean up and report as well -- it does always, hence the stuck build states. |
Should there be a timeout regarding the graceful docker shutdown? I'm thinking that the intention of having a user-driven possibility to cancel builds is actually to have a guarantee that you can get stuck builds unstuck and removed. |
Yup, this timeout is already in place, same with the celery task. The most Aside from build process not finishing, there is no additional side effect of a I do think a kill build feature is great idea still. This feature is probably a On Sun, Oct 30, 2016 at 07:07:05AM -0700, Benjamin Bach wrote:
[email protected] |
Did anyone on purpose add spaces after the '#' in the issue references, making them headlines or was it like that from the beginning? :) Don't wanna edit back the description in case the references are troublesome... but I think they were all good examples... |
I think this issue can be closed in favor of #3312 If you check all the issues linked in the description, most/all of the builds are in FAILED state with the message: "This build was terminated due to inactivity". Is the implemention of this task missing something regarding this issue? |
I'm closing this issue here since. Feel free to reopen if you consider. |
Details
There are many builds that I see get stuck. And for various reasons that should also be fixed. I also see a lot of reports in here.
Examples... I didn't browse all issues through, but you'll get the picture...
#2468
#2425
#2415
#2407
#2401
#2295
#2226
While I don't have any insights about how RTD works or why these builds are stuck, I would suggest an option for the user to kill/cancel a build and have directories cleaned up.
As another example, thake this list of builds:
I can't tell if having the ability to purge a stuck job, removing it from the queues would have any positive effects on other reports of build problems. All I'm saying is that it's worth a try, and ultimately, it can free up resources because users with very large projects can voluntarily cancel jobs that they don't want running (I often do that on Travis and Circle).
Flow
cancelling
cancelled
Updated flow with @agjohnson's suggestions
The text was updated successfully, but these errors were encountered: