title: Celery: When and where to use the return value of a .delay() running @task to update DB?
body: <p>I am building a Django app with Celery.</p>
  
  <p>I have a <code>@task</code> which I fire with <code>.delay()</code>.</p>
  
  <p>Once the task is complete, I need to use the return value (a string) to update my Postgres DB.</p>
  
  <p>I am not sure where should I put the DB update code?</p>
  
  <p>Do I do:</p>
  
  <p>a)</p>
  
  <pre><code>return_value = my_task.delay(..)
  (ORM - DB update code)
  </code></pre>
  
  <p>b)</p>
  
  <pre><code>my_task.delay(..) # &lt;-- Task updates the DB.
  </code></pre>
  
  <p>Which is the Pythonic correct way here?</p>