Re: How to run an external command that must run with the server

2018-04-03 Thread 'Alex' via Django users
s and doesn't give us any problems. > > Ken > > On 4/1/2018 7:06 AM, 'Alex' via Django users wrote: > > I have a daphne server running a django channels application. I also have > a python script that aggregates data from various sources, and sticks it > into

How to run an external command that must run with the server

2018-04-01 Thread 'Alex' via Django users
I have a daphne server running a django channels application. I also have a python script that aggregates data from various sources, and sticks it into the channel layer (called source.py). At the moment, I run it as a management command (python manage.py source). It is nearly time for

Re: Overriding channel-layer's group_send and group_add to add persistence

2018-04-01 Thread 'Alex' via Django users
I have a partial solution to this, if anybody is interested. For some reason, creating a new version of the core.py file in which RedisChannelLayer is defined, and editing it directly, gave the desired results. It was something about overriding only part of it, but I have no idea what! On

Re: How to run an external command that must run with the server

2018-04-03 Thread 'Alex' via Django users
kes > sense to me. If the latter, then I'd probably be looking at doing something > different. > > > Ken > > > On April 3, 2018 at 6:15 AM 'Alex' via Django users < > django...@googlegroups.com > wrote: > > That makes sense. So leave the source as a management comman

Overriding channel-layer's group_send and group_add to add persistence

2018-03-23 Thread 'Alex' via Django users
I've been trying to add persistence to channel layers, such that each new consumer joining a group is sent the most recent message from that group, on connect. Below are my attempts. For some reason, the message in the highlighted line always seems to be of type 'None'. Am I going about this

Re: Overriding channel-layer's group_send and group_add to add persistence

2018-03-23 Thread 'Alex' via Django users
ould insert a debugger there and >>> see what the Redis database contained manually at that point. >>> >>> Andrew >>> >>> On Fri, Mar 23, 2018 at 2:56 AM, 'Alex' via Django users < >>> django...@googlegroups.com> wrote: >>> >&g

Re: Overriding channel-layer's group_send and group_add to add persistence

2018-03-23 Thread 'Alex' via Django users
, I can't help you - I'd try doing some things with > plain aioredis to see if you can replicate it there. > > Andrew > > On Fri, Mar 23, 2018 at 9:01 AM, 'Alex' via Django users < > django...@googlegroups.com > wrote: > >> Hi, >> >> I've used the redis

Re: Overriding channel-layer's group_send and group_add to add persistence

2018-03-23 Thread 'Alex' via Django users
On Friday, 23 March 2018 15:58:37 UTC, Andrew Godwin wrote: > > It looks correct at first glance - I would insert a debugger there and see > what the Redis database contained manually at that point. > > Andrew > > On Fri, Mar 23, 2018 at 2:56 AM, 'Alex' via Dj