Abstract loading job file from disk
authorGuido Trotter <ultrotter@google.com>
Tue, 15 Jun 2010 10:17:24 +0000 (11:17 +0100)
committerGuido Trotter <ultrotter@google.com>
Thu, 17 Jun 2010 09:53:38 +0000 (10:53 +0100)
commit162c86365ab10bc6b5f5cb8c4f15aa10c1fe4ab0
treee435740b674cd06e59d1602d036e1a84a7f2c94d
parent3baa809cd493ec2c9f25ad956941180a3b72cca0
Abstract loading job file from disk

Move the work from _LoadJobUnlocked to _LoadJobFileFromDisk, which can
then be used in other contexts as well. Also, if we fail to deserialize
the job, archive it as well (before we archived it only if we failed to
create the related object, but kept it there if deserialization failed.

Signed-off-by: Guido Trotter <ultrotter@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>
lib/jqueue.py