exit if remainingTasks is less than 0 (vs just 0)#250
exit if remainingTasks is less than 0 (vs just 0)#250aerickson wants to merge 1 commit intotaskcluster:masterfrom
Conversation
|
Hi Andrew, Many thanks for the PR! We're slap bang in the middle of a migration at the moment which is top priority, so it may be a while before I get back to this, but I appreciate the PR. I think it may be time for us to make At the moment, reboots are required between tasks in the multiuser engine, but at some point we'll have support for headless tasks on multiuser that don't require a graphical interface, and then multiuser engine should be able to run multiple tasks at a time without exiting between them, so then the This is a throw back to when we didn't have a notion of "engine" in generic-worker and each platform operated slightly differently. In order for But it has caused a lot of confusion, so I think the time to rethink it a little is here. I'd like to park this while we have our platform migration going on, so it won't be until later in November that I will have much time to come back to this, but it sounds like you have a workaround in place (deleting Thanks again! |
g-w should exit if remainingTasks is less than or equal to 0.
Bitbar workers recently had an issue (due to our homegrown supersede detection) where we had a bad worker that failed ~180 tasks because g-w continued to work and didn't exit due to this. We configure g-w to exit after 1 task. We didn't use to delete the completed job counter, so remainingTasks was < 0 and g-w continued to run until it exceeded Bitbar's allowed container run time.
related: