[FIX] cron: cleanup wakeup pointers after processing them

bzr revid: odo@openerp.com-20110928235409-mzsuqxzmvc30sg0n
This commit is contained in:
Olivier Dony 2011-09-29 01:54:09 +02:00
parent f5fdb9f494
commit cc5d73a529
1 changed files with 1 additions and 0 deletions

View File

@ -176,6 +176,7 @@ def runner_body():
timestamp, db_name, canceled = task
if canceled:
continue
del _wakeup_by_db[db_name]
registry = openerp.pooler.get_pool(db_name)
if not registry._init:
_logger.debug("Database '%s' wake-up! Firing multi-threaded cron job processing", db_name)