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

Daemonize does not work with requests library #76

Open
tomgross opened this issue Aug 29, 2020 · 3 comments
Open

Daemonize does not work with requests library #76

tomgross opened this issue Aug 29, 2020 · 3 comments

Comments

@tomgross
Copy link

tomgross commented Aug 29, 2020

The following code fails on my Mac OS X in daemon but not in foreground mode:

import requests

def main():
    while True:
        requests.get('https://httpbin.org/get')
        sleep(10)

daemon = Daemonize(app="demo_app", pid="/tmp/demo_app.pid", action=main)
daemon.start()

I'm using Python 3.8.5, daemonize 2.5.0 and requests 2.24.0

@miigotu
Copy link

miigotu commented Aug 2, 2021

It would be beneficial to see how it fails, what error or traceback is produced.

@miigotu
Copy link

miigotu commented Aug 2, 2021

#75 (comment)

@nickodell
Copy link

In general, fork() is very broken on OSX, so this issue might be caused by that. Can you look at Console.app and include the traceback, per the instructions in #75 ?

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

3 participants