cook: renotify agents when waiting for deployment (#42956)

This commit is contained in:
Frédéric Péters 2020-05-15 13:47:57 +02:00
parent 0e61667d24
commit c4a80cb6c5
1 changed files with 4 additions and 0 deletions

View File

@ -108,7 +108,11 @@ class Command(BaseCommand):
t0 = time.time()
i = 0
last_service_url = None
last_notification = t0
while len(services) > 0:
if time.time() - last_notification > 15:
last_notification = time.time()
notify_agents(None)
for service in services[:]:
if service.last_operational_success_timestamp:
services.remove(service)