Re: Channels worker and call_later

2018-02-23 Thread Ken Whitesell
Andrew, Thanks for the quick reply! Yea, I kinda guessed I was overthinking this. Your solution works 100% for exactly what I'm trying to do. Sorry about the confusion regarding my reference to Twisted, it's no part of this particular project - I only mentioned it to state that while it ha

Re: Channels worker and call_later

2018-02-23 Thread Andrew Godwin
Hi Ken, You should write asyncio code, rather than Twisted code - we have Twisted running on it asyncio reactor so both are available, and asyncio is the only thing you're guaranteed from the spec/other future servers. Given that, I would recommend making a separate asyncio Task that has an "awai

Channels worker and call_later

2018-02-23 Thread Ken Whitesell
TLDR: Is there a way to use the call_later function within a worker task? (Or am I just looking at this issue the wrong way?) Software - Python 3.6, Django 2.0.2, Channels 2.0.2, trying to run this on either / both Windows 10 and Ubuntu 17.10 if it matters Longer version - I'm having surprising