Commit 66bd7445 added an assertion to ensure a finalized job has its
“end_timestamp” attribute set. Unfortunately it didn't cover a case when
the queue is recovering from an unclean master shutdown.
---
lib/jqueue.py | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/lib/jqueue.py b/lib/jqueue.py
index 08e1a40..e9dcd99 100644
--- a/lib/jqueue.py
+++ b/lib/jqueue.py
@@ -1535,6 +1535,7 @@ class JobQueue(object):
else:
job.MarkUnfinishedOps(constants.OP_STATUS_ERROR,
"Unclean master daemon shutdown")
+ job.Finalize()
self.UpdateJobUnlocked(job)
--
1.7.3.5