Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add non-basic usage example. #26

Open
adiroiban opened this issue Feb 13, 2019 · 0 comments
Open

Add non-basic usage example. #26

adiroiban opened this issue Feb 13, 2019 · 0 comments

Comments

@adiroiban
Copy link
Member

The current basic examples are fine... but it uses a single python mode for both the main process and the AMP workers.

When I started to see how to use ampule I was a bit confused about what is executed in the main reactor and what is executed in the child process.

I have created this example in which there are 2 python modules.
It helped me as an example of what is executed in the child.
It uses the setproctitle module so that at least in Linux, when you run ps you don't see the whole bootstrap code.

https://gist.github.com/adiroiban/d2bb96a52634d7aa07493ac3df2ecfb0

Let me know if you think that this example makes sense and it it worth being included in the repo.


For my work, I ended up using Python stdlib multiprocess.Pool

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant