Re: Channels with django signals

2018-02-03 Thread John Wayne
Oh I saw that you fixed it recently. Thank you anyway :) On Sunday, February 4, 2018 at 1:22:58 AM UTC+1, Andrew Godwin wrote: > > Hi John, > > This is fixed in the asgiref master branch, I should be releasing it soon. > > Andrew > > On Sat, Feb 3, 2018 at 4:14 PM, John Wayne > wrote: > >> Hi eve

Re: Channels with django signals

2018-02-03 Thread Andrew Godwin
Hi John, This is fixed in the asgiref master branch, I should be releasing it soon. Andrew On Sat, Feb 3, 2018 at 4:14 PM, John Wayne wrote: > Hi everyone, > > I am trying to send a channels message from a django signal. The problem > ist that the signal function is not async. So I tried to us

Channels with django signals

2018-02-03 Thread John Wayne
Hi everyone, I am trying to send a channels message from a django signal. The problem ist that the signal function is not async. So I tried to use the AsyncToSync wrapper. But it seems this is not possible as the signal handler is run by a thread and has no event loop. ... self.main_event_