Hello,
I have a project that uses Channels as a worker queue, with a SyncConsumer that runs a heavy computation task. This works great.
I transitioned the project to have a 'task in process' page that opens a websocket and through the magic of channel's groups it gets pushed the computation updates as they happen. This works great.
I'm now transitioning the project to be a single-page-app that communicates via a websocket. Using `runserver`, this works great, the websocket stays open. However, the messages from the SyncConsumer stop after a few seconds. I've established that time is whatever the value of `websocket_handshake_timeout` is, but this doesn't make sense to me AFAIK as the channel_layer is independent from the JsonWebsocketConsumer instance, and the websocket is happily connected and still passing messages.
Any ideas? Is this a bug or am I doing something wrong?
Thanks,
Toby
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/a329b26e-89f5-42d1-86b2-28ad1c85bb90%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment