Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Fukász Rómeó Ervin
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
5254e2ad
authored
Oct 02, 2014
by
Őry Máté
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vm: rewrite abort-checking loop
parent
ae821278
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
2 deletions
+1
-2
circle/vm/operations.py
+1
-2
No files found.
circle/vm/operations.py
View file @
5254e2ad
...
@@ -73,7 +73,7 @@ class AbortableRemoteOperationMixin(object):
...
@@ -73,7 +73,7 @@ class AbortableRemoteOperationMixin(object):
args
=
self
.
_get_remote_args
(
**
kwargs
),
args
=
self
.
_get_remote_args
(
**
kwargs
),
remote
=
self
.
task
.
apply_async
(
remote
=
self
.
task
.
apply_async
(
args
=
args
,
queue
=
self
.
_get_remote_queue
())
args
=
args
,
queue
=
self
.
_get_remote_queue
())
for
i
in
xrange
(
int
(
self
.
remote_timeout
/
self
.
remote_step
)
):
for
i
in
xrange
(
0
,
self
.
remote_timeout
,
self
.
remote_step
):
try
:
try
:
return
remote
.
get
(
timeout
=
self
.
remote_step
)
return
remote
.
get
(
timeout
=
self
.
remote_step
)
except
TimeoutError
as
e
:
except
TimeoutError
as
e
:
...
@@ -81,7 +81,6 @@ class AbortableRemoteOperationMixin(object):
...
@@ -81,7 +81,6 @@ class AbortableRemoteOperationMixin(object):
AbortableAsyncResult
(
remote
.
id
)
.
abort
()
AbortableAsyncResult
(
remote
.
id
)
.
abort
()
raise
humanize_exception
(
ugettext_noop
(
raise
humanize_exception
(
ugettext_noop
(
"Operation aborted by user."
),
e
)
"Operation aborted by user."
),
e
)
return
remote
.
get
(
timeout
=
self
.
remote_step
)
class
InstanceOperation
(
Operation
):
class
InstanceOperation
(
Operation
):
...
...
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