Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
ansible
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
OpenEdx
ansible
Commits
c486b677
Commit
c486b677
authored
Apr 13, 2015
by
Toshio Kuratomi
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #10692 from ianzd/python3
Import queue from six.moves for python3 compatibility.
parents
4b889bbe
6e12117b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
v2/ansible/executor/process/result.py
+3
-3
v2/ansible/executor/process/worker.py
+2
-2
No files found.
v2/ansible/executor/process/result.py
View file @
c486b677
...
...
@@ -19,7 +19,7 @@
from
__future__
import
(
absolute_import
,
division
,
print_function
)
__metaclass__
=
type
import
Q
ueue
from
six.moves
import
q
ueue
import
multiprocessing
import
os
import
signal
...
...
@@ -77,7 +77,7 @@ class ResultProcess(multiprocessing.Process):
result
=
rslt_q
.
get
(
block
=
False
)
debug
(
"got a result from worker
%
d:
%
s"
%
(
self
.
_cur_worker
,
result
))
break
except
Q
ueue
.
Empty
:
except
q
ueue
.
Empty
:
pass
if
self
.
_cur_worker
==
starting_point
:
...
...
@@ -164,7 +164,7 @@ class ResultProcess(multiprocessing.Process):
if
result
.
_task
.
register
:
self
.
_send_result
((
'set_host_var'
,
result
.
_host
,
result
.
_task
.
register
,
result
.
_result
))
except
Q
ueue
.
Empty
:
except
q
ueue
.
Empty
:
pass
except
(
KeyboardInterrupt
,
IOError
,
EOFError
):
break
...
...
v2/ansible/executor/process/worker.py
View file @
c486b677
...
...
@@ -19,7 +19,7 @@
from
__future__
import
(
absolute_import
,
division
,
print_function
)
__metaclass__
=
type
import
Q
ueue
from
six.moves
import
q
ueue
import
multiprocessing
import
os
import
signal
...
...
@@ -130,7 +130,7 @@ class WorkerProcess(multiprocessing.Process):
else
:
time
.
sleep
(
0.1
)
except
Q
ueue
.
Empty
:
except
q
ueue
.
Empty
:
pass
except
(
IOError
,
EOFError
,
KeyboardInterrupt
):
break
...
...
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