From f57c8a771863710be9a84c69ad4e811cd50a6bcb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Tue, 4 Jun 2019 11:22:12 +0200 Subject: [PATCH] cook: wait for secondary hobo to be deployed (#33653) --- hobo/environment/management/commands/cook.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hobo/environment/management/commands/cook.py b/hobo/environment/management/commands/cook.py index 1c4f7d6..951df88 100644 --- a/hobo/environment/management/commands/cook.py +++ b/hobo/environment/management/commands/cook.py @@ -124,6 +124,10 @@ class Command(BaseCommand): slug = 'hobo-%s' % slugify(title) self.create_site(Hobo, url, title, slug, template_name='', variables=None) + # deploy and wait for new site + notify_agents(None) + self.wait_operationals(timeout=self.timeout) + # switch context to new hobo domain = get_domain(url) tenant = TenantMiddleware.get_tenant_by_hostname(domain) connection.set_tenant(tenant)