title: Django Celery: Task never executes
body: <p>In my django application I am using celery. In a post_save signal, I am updating the index in elastic search. But for some reason the task gets hung and never actually executes the code:</p>
  <p>What I use to run celery:</p>
  <pre><code>celery -A collegeapp worker -l info
  </code></pre>
  <p><strong>The Signal:</strong></p>
  <pre><code>@receiver(post_save, sender=University)
  def university_saved(sender, instance, created, **kwargs):
      &quot;&quot;&quot;
      University save signal
      &quot;&quot;&quot;
      print('calling celery task')
      update_university_index.delay(instance.id)
      print('finished')
  </code></pre>
  <p><strong>The task:</strong></p>
  <pre><code>@task(name=&quot;update_university_index&quot;, bind=True, default_retry_delay=5, max_retries=1, acks_late=True)
  def update_university_index(instance_id):
      print('updating university index')
  </code></pre>
  <p>The only output I get is <code>calling celery task</code>. after waiting over 30 minutes, it doesn't ever get to any other print statements and the view continue to wait. Nothing ever shows in celery terminal.</p>
  <p><strong>Versions:</strong>
  Django 3.0,
  Celery 4.3,
  Redis 5.0.9,
  Ubuntu 18</p>
  <p><strong><strong>UPDATE:</strong></strong>
  after doing some testing, using the <code>debug_task</code> defined inside the <code>celery.py</code> file in place of <code>update_university_index</code> does not lead to hanging. It behaves as expect. I thought maybe it could have been <code>app.task</code> vs <code>task</code> decorator but it seems that's not it.</p>
  <pre><code>@app.task(bind=True)
  def debug_task(text, second_value):
      print('printing  debug_task {} {}'.format(text, second_value))
  </code></pre>