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 <[email protected]> Reviewed-by: Bernardo Dal Seno <[email protected]> (cherry picked from commit 045694691691af1b10d1d055bdac55cf205e47de) --- lib/jqueue.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/lib/jqueue.py b/lib/jqueue.py index d91da45..204966e 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() -- 1.7.7.3
