When there are running jobs and a large run gets scheduled, FOG
provisioning gets backed up due to its built-in rate limiting. 15
minutes should be a little more lenient and prevent large spikes of dead
jobs when a run is scheduled in an idle queue.
Signed-off-by: David Galloway <dgallowa@redhat.com>
completed)
"""
self.log.info("Waiting for deploy to finish")
- with safe_while(sleep=15, tries=40) as proceed:
+ with safe_while(sleep=15, tries=60) as proceed:
while proceed():
if not self.deploy_task_active(task_id):
break
@mark.parametrize(
'tries',
- [3, 45],
+ [3, 61],
)
def test_wait_for_deploy_task(self, tries):
wait_results = [True for i in range(tries)] + [False]
deploy_task_active=DEFAULT,
) as local_mocks:
local_mocks['deploy_task_active'].side_effect = wait_results
- if tries >= 40:
+ if tries >= 60:
with raises(MaxWhileTries):
obj.wait_for_deploy_task(9)
return