Re: Channels + steam(gevent based package)

2017-03-07 Thread Andrew Godwin
I'm afraid I can't really help with something this complex, it seems like your problems stem a lot from gevent and process management as well, and that's a very difficult topic. My general advice would be to try splitting things up into more separate processes (django management commands can be goo

Re: Channels + steam(gevent based package)

2017-03-07 Thread Lada B
Do you have some advice? How should I start it and still be able to send all needed parameters there and use channels send()? When I start new Thread it still throws errors and when I start new Process then its broken and there i some fork error in the end. Dne úterý 7. března 2017 19:45:36 UTC

Re: Channels + steam(gevent based package)

2017-03-07 Thread Lada B
I call it in signal function after enough of user rows is in DB: @receiver(post_save, sender=chat_session) def on_create_users_online(sender, created, **kwargs): some magic conditions start_bot(kwargs['instance'].match_id, group1, group2,group_name, rad_reward, dire_reward,

Re: Channels + steam(gevent based package)

2017-03-07 Thread Andrew Godwin
So you are starting a steam client from a consumer inside a worker process then? Inside a consumer, send() calls will not finish until you return control from the consumer, so maybe that's it? On Tue, Mar 7, 2017 at 10:39 AM, Lada B wrote: > I call it in signal function after enough of user rows

Re: Channels + steam(gevent based package)

2017-03-07 Thread Lada B
I call it in signal function after enough of user rows is in DB: @receiver(post_save, sender=chat_session) def on_create_users_online(sender, created, **kwargs): some magic and conditions start_bot(kwargs['instance'].match_id, group1, group2,group_name, rad_reward, dire_

Re: Channels + steam(gevent based package)

2017-03-07 Thread Andrew Godwin
Where are you running this steam client from? Presumably not a webserver process, as that doesn't have a main thread. Could you explain a bit more about the architecture and what channel layers you have configured? Andrew On Tue, Mar 7, 2017 at 4:06 AM, Lada B wrote: > I'm using > > https://git