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

os.fork appears to not be supported #8

Open
jnegro opened this issue Sep 21, 2016 · 1 comment
Open

os.fork appears to not be supported #8

jnegro opened this issue Sep 21, 2016 · 1 comment

Comments

@jnegro
Copy link

jnegro commented Sep 21, 2016

I currently use loggly-python-handler to log an application that has asynchronous jobs triggered by web requests. To do this, I use os.fork to fork off the actual job, and use the original request to respond back to the web request as ok. No matter what I do, I only receive logs in loggly for the original process, and nothing for the forked process. This is true when trying to use my global logger, or even instantiating a new object via logging.getLogger() after the fork. Is there something under the hood that stops me from using the original logger no matter where the object is referenced?

@mostlyjason
Copy link

I believe this is already coded to use the futures package. I'm not sure how that interacts with fork, but I believe it offers asynchronous requests? Perhaps that is creating some kind of conflict?

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

2 participants