Fix assertion error on unclean master shutdown
authorMichael Hanselmann <hansmi@google.com>
Thu, 14 Jul 2011 20:49:34 +0000 (22:49 +0200)
committerMichael Hanselmann <hansmi@google.com>
Tue, 6 Sep 2011 14:06:21 +0000 (16:06 +0200)
commitfd121c8ec0f99b4eb138ef7936a33e9a6b530d7a
tree7a15308a8d5189ac9c48fa13b26d8977b9424dbe
parente4a48c7b1d1d62b1e8d2bca1c62f777bda496d4f
Fix assertion error on unclean master shutdown

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.

Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
Reviewed-by: René Nussbaumer <rn@google.com>
(cherry picked from commit 45df0793c6bc83001aa545fda95c1ad9a35d732f)
lib/jqueue.py