- python assimilator fix

svn path=/trunk/boinc/; revision=18431
This commit is contained in:
David Anderson 2009-06-16 19:38:35 +00:00
parent dfaf0023d4
commit 7e74f6971c
2 changed files with 12 additions and 2 deletions

View File

@ -5727,3 +5727,9 @@ David 16 June 2009
Makefile.am Makefile.am
lib/ lib/
Makefile.am Makefile.am
David 16 June 2009
- python assimilator fix
sched/
assimilator.py

View File

@ -180,9 +180,13 @@ class Assimilator():
if result == wu.canonical_result: if result == wu.canonical_result:
canonical_result=result canonical_result=result
if canonical_result == None: if canonical_result == None and wu.error_mask == 0:
# something is wrong, flag an error # If no canonical result found and WU had no other errors,
# something is wrong, e.g. result records got deleted prematurely.
# This is probably unrecoverable, so mark the WU as having
# an assimilation error and keep going.
wu.error_mask = boinc_db.WU_ERROR_NO_CANONICAL_RESULT wu.error_mask = boinc_db.WU_ERROR_NO_CANONICAL_RESULT
wu.commit()
# assimilate handler # assimilate handler
self.assimilate_handler(wu, results, canonical_result) self.assimilate_handler(wu, results, canonical_result)