From e4cf42d45f925f9d42687e6eaacda0ab91805de2 Mon Sep 17 00:00:00 2001 From: Michael Hanselmann <hansmi@google.com> Date: Fri, 5 Oct 2012 04:36:42 +0200 Subject: [PATCH] jqueue: Look at archived jobs when watching MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit First: This enables the use of βgnt-job watch $idβ for archived jobs. Now, the reason for actually making this work is that during sufficiently large group or node evacuations jobs are archived before the client gets to poll for their output. This led to situations where the jobs would finish successfully, but the client reported an error because it couldn't see the job anymore. Signed-off-by: Michael Hanselmann <hansmi@google.com> Reviewed-by: Bernardo Dal Seno <bdalseno@google.com> (cherry picked from commit 045694691691af1b10d1d055bdac55cf205e47de) --- lib/jqueue.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/jqueue.py b/lib/jqueue.py index d91da4556..204966ec5 100644 --- a/lib/jqueue.py +++ b/lib/jqueue.py @@ -2282,7 +2282,7 @@ class JobQueue(object): as such by the clients """ - load_fn = compat.partial(self.SafeLoadJobFromDisk, job_id, False, + load_fn = compat.partial(self.SafeLoadJobFromDisk, job_id, True, writable=False) helper = _WaitForJobChangesHelper() -- GitLab