Skip to content

Commit f5891f2

Browse files
author
Gabriel Monroy
committed
wait 10 seconds for ssh daemon to come up
1 parent 51434ae commit f5891f2

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

celerytasks/ec2.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,8 @@ def launch_node(node_id, creds, params, init, ssh_username, ssh_private_key):
9393
node.fqdn = boto.public_dns_name
9494
node.metadata = format_metadata(boto)
9595
node.save()
96+
# wait 10 seconds for ssh daemon to come up
97+
time.sleep(10)
9698
# loop until cloud-init is finished
9799
ssh = util.connect_ssh(ssh_username, boto.public_dns_name, 22,
98100
ssh_private_key)

0 commit comments

Comments
 (0)