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.
---
lib/jqueue.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/lib/jqueue.py b/lib/jqueue.py
index 96c29a1..069884b 100644
--- a/lib/jqueue.py
+++ b/lib/jqueue.py
@@ -2257,7 +2257,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