viniciuschiele / flask-apscheduler

Adds APScheduler support to Flask
Apache License 2.0
1.11k stars 184 forks source link

Behaviour of processpool #237

Open raphael-bresson opened 10 months ago

raphael-bresson commented 10 months ago

Hi I'm developing a web app with

I encounter several issue on the server side when using a process pool instead of a thread pool to run my background tasks (heavy):

  1. The socketIO.emit calls from my jobs are not always sent to my client. Sometimes yes, others no. Not sure why.

  2. The auto reload feature of Flask seems broken. It is stuck because of the background process not properly killed I suppose. But I know that it ended normally.

None of this behaviors happen with a thread pool.

Could any of you help me on that ?

Thanks

viniciuschiele commented 10 months ago

Hi,

I can try to investigate this further if you can provide a repository that reproduces the issue