Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
configuration
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
configuration
Commits
712f3b25
Commit
712f3b25
authored
Feb 02, 2015
by
Feanil Patel
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1815 from edx/feanil/eventually_consistent
Deal with the fact that the AWS API is eventually consistent.
parents
7b7c3489
c2f5364d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletions
+10
-1
util/vpc-tools/abbey.py
+10
-1
No files found.
util/vpc-tools/abbey.py
View file @
712f3b25
...
...
@@ -595,7 +595,16 @@ def launch_and_configure(ec2_args):
"Waiting for instance {} to reach running status:"
.
format
(
instance_id
)),
status_start
=
time
.
time
()
for
_
in
xrange
(
EC2_RUN_TIMEOUT
):
res
=
ec2
.
get_all_instances
(
instance_ids
=
[
instance_id
])
try
:
res
=
ec2
.
get_all_instances
(
instance_ids
=
[
instance_id
])
except
EC2ResponseError
as
e
:
if
e
.
code
==
"InvalidInstanceID.NotFound"
:
print
(
"Instance not found({}), will try again."
.
format
(
instance_id
))
time
.
sleep
(
1
)
continue
else
:
raise
(
e
)
if
res
[
0
]
.
instances
[
0
]
.
state
==
'running'
:
status_delta
=
time
.
time
()
-
status_start
run_summary
.
append
((
'EC2 Launch'
,
status_delta
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment