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

Scheduler not starting on version 1.12.2 #163

Closed
ifokeev opened this issue Apr 29, 2021 · 5 comments
Closed

Scheduler not starting on version 1.12.2 #163

ifokeev opened this issue Apr 29, 2021 · 5 comments

Comments

@ifokeev
Copy link

ifokeev commented Apr 29, 2021

Seems like scheduler doesn't start on version 1.12.2, downgraded to 1.12.1 and started to work

@viniciuschiele
Copy link
Owner

Can you share how you are running the app? is it with gunicorn/uwsgi?

@ifokeev
Copy link
Author

ifokeev commented Apr 29, 2021

we use flask with uwsgi.

we start it like this:

        @app.before_first_request
        def init_scheduler():
            from . import scheduled_tasks
            scheduler.start()

@viniciuschiele
Copy link
Owner

Thanks, I will do some tests

@viniciuschiele
Copy link
Owner

I couldn't reproduce this issue using @app.before_first_request to start the scheduler, would you be able to share a small project where this issue happens.

This is how I'm running my test app
uwsgi --socket 0.0.0.0:5000 --protocol=http --enable-threads -w test:app

@ifokeev
Copy link
Author

ifokeev commented Apr 29, 2021

Around same here

CMD uwsgi --master \
  --py-autoreload=$AUTORELOAD \
  --wsgi-file wsgi.py \
  --callable app \
  --workers $WORKERS \
  --threads $THREADS \
  --protocol http \
  -b 32768 \
  --socket 0.0.0.0:$PORT_APP

I've got some stacked bugs, maybe some versions conflict. Will investigate

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