miguelgrinberg / turbo-flask

Integration of Hotwire's Turbo library with Flask.
MIT License
301 stars 35 forks source link

Using turbo-flask and streams with celery ? #53

Closed maximelebastard closed 2 weeks ago

maximelebastard commented 2 weeks ago

Hello there,

has anyone used turbo-flask with celery ?

I tried a few things but it seems the app instances between the worker and the webapp are separate. Anyone already made that successfully ?

miguelgrinberg commented 2 weeks ago

Unfortunately there is no easy mechanism for a process that is not the server to communicate with clients. My recommendation is that your Celery worker passes the information it wants to send to clients to the server, either through a status update or as a final result when the job is done.

maximelebastard commented 2 weeks ago

Thank you for your quick answer ! :)