Experimenting with Channels: sending messages from Django shell doesn't work

2017-01-16 Thread Joshua Gardner
I'm in the process of developing a Websockets notifications system using Channels. I've got a JsonWebsocketConsumer that adds the connection to a group for the Location (model) that the user belongs to. Connecting to that websocket with wscat, and trying to see if sending to that group works, I

Re: Experimenting with Channels: sending messages from Django shell doesn't work

2017-01-16 Thread Joshua Gardner
I'm going to answer my own question: Appears that I need to use the "immediately" keyword are to Channel or Group.send. On Monday, January 16, 2017 at 5:27:19 AM UTC-7, Joshua Gardner wrote: > > I'm in the process of developing a Websockets notifications system usi

How to fix deadlocks with tests?

2023-10-27 Thread Joshua Gardner
I'm experiencing deadlocks in my production application occasionally. I'm using MySQL. Some of these deadlocks are due to insufficient indexing, and I'd like to fix this with some test-driven development. How can I write tests that exercise the application concurrently, and could be used to replic