[Flask] Scheduled tasks
Luca Lesinigo
luca at lesinigo.it
Fri Sep 18 09:32:20 CEST 2015
Il giorno 17/set/2015, alle ore 14:39, Corey Boyle <coreybrett at gmail.com> ha scritto:
> I like that! Simple, but effective.
> Now that I think about it, that's how Moodle works too.
For that kind of thing I usually spawn one or more python threads before calling app.run() and then use queues (queue.Queue() from standard library) for communication between Flask threads (handling requests) and my threads (doing my stuff)
--
Luca Lesinigo
More information about the Flask
mailing list