-
Hi. I'm trying to upgrade old legacy project from python2.7/django1.11 to recent python/django. But in production we have nginx -> gunicorn + daphne running on a number of servers with common database and redis. So when gunicorn code (even on same server) change object, daphne doesn't see signals and doesn't send notifications. There was no such problems with old channels_api library. Is there any way to get this work in distributed environment ? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
when you deploy in production (the gunicorn HTTP code) does that path end up importing your consumers? You might need to put an inport statement someway in your application to ensure the consumers are imported when you run the regular HTTP endpoints through gunicorn. |
Beta Was this translation helpful? Give feedback.
when you deploy in production (the gunicorn HTTP code) does that path end up importing your consumers?
You might need to put an inport statement someway in your application to ensure the consumers are imported when you run the regular HTTP endpoints through gunicorn.