From b9e6fad1b63db722fd5413931667542c202e5800 Mon Sep 17 00:00:00 2001 From: Richard Ipsum Date: Wed, 4 Jun 2014 12:44:30 +0100 Subject: Add comment to explain the use of _JobFailed event --- distbuild/worker_build_scheduler.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'distbuild') diff --git a/distbuild/worker_build_scheduler.py b/distbuild/worker_build_scheduler.py index 99724e29..8caf5511 100644 --- a/distbuild/worker_build_scheduler.py +++ b/distbuild/worker_build_scheduler.py @@ -599,6 +599,12 @@ class WorkerConnection(distbuild.StateMachine): 'Failed to populate artifact cache: %s %s' % (event.msg['status'], event.msg['body'])) + # We will attempt to remove this job twice + # unless we mark it as failed before the BuildController + # processes the WorkerBuildFailed event. + # + # The BuildController will not try to cancel jobs that have + # been marked as failed. self.mainloop.queue_event(WorkerConnection, _JobFailed(self._job)) -- cgit v1.2.1