title: Sending messages to django-channels via celery
body: <p>So I have a scheduled celery beat task (celery.py):</p>
  
  <pre><code>@app.on_after_configure.connect 
  def setup_periodic_tasks(sender,
  **kwargs):
      sender.add_periodic_task(10.0, test_event, name='test')
  </code></pre>
  
  <p>And the task (events/tasks.py):</p>
  
  <pre><code>@shared_task
  def test_event():
      from .models import Event
      Event.objects.create()
  </code></pre>
  
  <p>When the event is created, a receiver is fired, that should send a message to a channels group (events/receivers.py):</p>
  
  <pre><code>@receiver(post_save, sender=Event)
  def event_post_add(sender, instance, created, *args, **kwargs):
      if created:
          print("receiver fired")
          Group("test").send({
              "text": json.dumps({
                  'type': 'test',
              })
          })
  </code></pre>
  
  <p>The main problem is that the receiver is being fired in the celery beat process, and nothing is getting sent via django channels. No error messages, nothing, it's simply not being sent.</p>
  
  <p>How can I integrate these two so that I will be able to send messages to channels from celery background processes?</p>