Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mitogen
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
mitogen
Commits
19632473
Commit
19632473
authored
Mar 18, 2018
by
David Wilson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
issue #144: ansible: use service.Pool with default size=1.
parent
fe900087
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
ansible_mitogen/process.py
ansible_mitogen/process.py
+4
-5
No files found.
ansible_mitogen/process.py
View file @
19632473
...
...
@@ -30,7 +30,6 @@ from __future__ import absolute_import
import
os
import
socket
import
sys
import
threading
import
mitogen
import
mitogen.core
...
...
@@ -147,9 +146,9 @@ class MuxProcess(object):
Construct a ContextService and a thread to service requests for it
arriving from worker processes.
"""
self
.
service
=
ansible_mitogen
.
services
.
ContextService
(
self
.
router
)
self
.
service_thread
=
threading
.
Thread
(
target
=
self
.
service
.
run
)
self
.
service_thread
.
start
(
)
self
.
pool
=
mitogen
.
service
.
Pool
(
self
.
router
,
[
ansible_mitogen
.
services
.
ContextService
(
self
.
router
)
]
)
def
on_broker_shutdown
(
self
):
"""
...
...
@@ -157,5 +156,5 @@ class MuxProcess(object):
the main thread) by unlinking the listening socket. Ideally this would
happen explicitly, but Ansible provides no hook to allow it.
"""
self
.
pool
.
stop
()
os
.
unlink
(
self
.
listener
.
path
)
self
.
service_thread
.
join
(
timeout
=
10
)
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