Skip to content

Commit

Permalink
[FIX] higher sleep values
Browse files Browse the repository at this point in the history
  • Loading branch information
Xavier-Do committed Jun 17, 2024
1 parent 6fca88a commit c562dac
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions runbot/models/runbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,10 +287,10 @@ def _fetch_loop_turn(self, host, pull_info_failures, default_sleep=1):

return manager.get('sleep', default_sleep)

def _scheduler_loop_turn(self, host, sleep=5):
def _scheduler_loop_turn(self, host, sleep=10):
with self._manage_host_exception(host) as manager:
if self._scheduler(host):
sleep = 0.1
sleep = 0.5
return manager.get('sleep', sleep)

@contextmanager
Expand All @@ -311,7 +311,7 @@ def _manage_host_exception(self, host):
host.last_exception = str(e)
host.exception_count = 1
self._commit()
res['sleep'] = random.uniform(0, 3)
res['sleep'] = random.uniform(1, 5)
else:
if host.last_exception:
host.last_exception = ""
Expand Down

0 comments on commit c562dac

Please sign in to comment.