summaryrefslogtreecommitdiff
path: root/lorry-controller-minion
diff options
context:
space:
mode:
Diffstat (limited to 'lorry-controller-minion')
-rwxr-xr-xlorry-controller-minion6
1 files changed, 6 insertions, 0 deletions
diff --git a/lorry-controller-minion b/lorry-controller-minion
index fe2089f..c269645 100755
--- a/lorry-controller-minion
+++ b/lorry-controller-minion
@@ -134,6 +134,12 @@ class MINION(cliapp.Application):
if exit is not None:
break
if kill_job:
+ # FIXME: The job may have produced more output while
+ # we were talking to WEBAPP. We are not polling the
+ # process again, here. This should be fixed. However,
+ # since the process may be in an unkillable state (D
+ # state, for example), we also can't wait here until
+ # it actually dies. Thus, this needs thinking.
exit = self.kill_job()
self.update_webapp_about_job(
job_spec, '', '', exit)