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
25e4724b
Commit
25e4724b
authored
Sep 17, 2017
by
David Wilson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
A few more mitogen.slave/master changes
parent
708b742a
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
4 deletions
+4
-4
docs/api.rst
docs/api.rst
+1
-1
examples/ansible_demo.py
examples/ansible_demo.py
+1
-1
tests/data/self_contained_program.py
tests/data/self_contained_program.py
+1
-1
tests/data/webproject/serve_django_app.py
tests/data/webproject/serve_django_app.py
+1
-1
No files found.
docs/api.rst
View file @
25e4724b
...
...
@@ -12,7 +12,7 @@ mitogen Package
.. automodule:: mitogen
.. autodata:: mitogen.
slave
.. autodata:: mitogen.
master
.. autodata:: mitogen.context_id
.. autodata:: mitogen.parent_id
...
...
examples/ansible_demo.py
View file @
25e4724b
...
...
@@ -106,5 +106,5 @@ def main(router):
for
x
in
xrange
(
10
):
print
context
.
call
(
run_module
,
'ansible.modules.core.commands.command'
,
'hostname'
)
if
__name__
==
'__main__'
and
not
mitogen
.
slave
:
if
__name__
==
'__main__'
and
mitogen
.
master
:
mitogen
.
utils
.
run_with_router
(
main
)
tests/data/self_contained_program.py
View file @
25e4724b
...
...
@@ -18,5 +18,5 @@ def main():
broker
.
shutdown
()
broker
.
join
()
if
__name__
==
'__main__'
and
not
mitogen
.
slave
:
if
__name__
==
'__main__'
and
mitogen
.
master
:
main
()
tests/data/webproject/serve_django_app.py
View file @
25e4724b
...
...
@@ -33,5 +33,5 @@ def main(broker):
#context.call(mitogen.utils.log_to_file, '/tmp/log')
context
.
call
(
serve_django_app
,
'webproject.settings'
)
if
__name__
==
'__main__'
and
not
mitogen
.
slave
:
if
__name__
==
'__main__'
and
mitogen
.
master
:
mitogen
.
utils
.
run_with_broker
(
main
)
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