Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
worker.py: Avoid letting a job get stuck if exception occurs
Some instances of stuck jobs were observed recently for PureOS. From the logs, I think a Python exception may have occurred after the build completed but before the artifacts were uploaded. I can't tell what might have caused that exception, if it did occur. This change would ensure that a 'rejected' status is sent if this occurs, rather than leaving the job stuck with no result. I applied this change to fennel.pureos.net (the new worker) to try to identify what was causing the stuck jobs, but this never happened again. No jobs got stuck after that and this exception code was never hit, so I can't identify the root cause. Signed-off-by: Jonathon Hall <[email protected]>
- Loading branch information