mirror of
https://github.com/odoo/runbot.git
synced 2025-03-15 23:45:44 +07:00
[FIX] runbot: fix leader pull_info_failures
The initial pull_info_failures feature was introduced before the separate process for the leader. Since this is here for a rare case, this wasn't tested since then. Testing the new infrastructure without token, there was many pull_info_failure, leading to an error on cleanup.
This commit is contained in:
parent
33ab9cdce6
commit
a6fa7b8023
@ -262,7 +262,7 @@ class Runbot(models.AbstractModel):
|
||||
for pr_number, t in pull_info_failures.items():
|
||||
if t + 15*60 < time.time():
|
||||
_logger.warning('Removing %s from pull_info_failures', pr_number)
|
||||
del self.pull_info_failures[pr_number]
|
||||
del pull_info_failures[pr_number]
|
||||
|
||||
return manager.get('sleep', default_sleep)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user