mirror of
https://github.com/odoo/runbot.git
synced 2025-03-15 15:35:46 +07:00
[REV] runbot: lower sleep values"
Revert "[FIX] higher sleep values"
This reverts commit c562dac84d
.
This was done before upgrading the postgresql serevr hardware. we should
be able to have faster updates now.
This commit is contained in:
parent
09b14e1702
commit
214ab338d5
@ -288,10 +288,10 @@ class Runbot(models.AbstractModel):
|
||||
|
||||
return manager.get('sleep', default_sleep)
|
||||
|
||||
def _scheduler_loop_turn(self, host, sleep=10):
|
||||
def _scheduler_loop_turn(self, host, sleep=5):
|
||||
with self._manage_host_exception(host) as manager:
|
||||
if self._scheduler(host):
|
||||
sleep = 0.5
|
||||
sleep = 0.1
|
||||
return manager.get('sleep', sleep)
|
||||
|
||||
@contextmanager
|
||||
@ -312,7 +312,7 @@ class Runbot(models.AbstractModel):
|
||||
host.last_exception = str(e)
|
||||
host.exception_count = 1
|
||||
self._commit()
|
||||
res['sleep'] = random.uniform(1, 5)
|
||||
res['sleep'] = random.uniform(0, 3)
|
||||
else:
|
||||
if host.last_exception:
|
||||
host.last_exception = ""
|
||||
|
Loading…
Reference in New Issue
Block a user