Replies: 1 comment 7 replies
-
What is the |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to run my Flask uWSGI application with APScheduler.
I was using it with the default in-memory jobstore without problems before, but now I need to persist some jobs that are scheduled far in the future in a PostgreSQL database, so it can live longer than the process.
Unfortunately, as soon as I add the jobstore, the uWSGI event loop doesn't start anymore.
The code I am running is:
This is the full uWSGI output log:
After that, nothing happens: I cannot do any requests to Flask, as they fail.
When not initializing the PostgreSQL jobstore, the output log is the same but one additional line pops up at the end:
This starts the backend successfully and I can do requests to it as used to.
I already read about uWSGI doing some stuff with the GIL, which APScheduler relies on. To fix this, I should add
--enable-threads
to the uWSGI command line, which I did. But it didn't change anything, unfortunately.Is there anything I missed when setting the jobstores up?
Beta Was this translation helpful? Give feedback.
All reactions