title: How to enter arguments of celery jobs into database to be queried; using mysql
body: <p>I am using MySql as result backend for celery. I want to store program arguments in DB too.</p>
  
  <p>For example:   </p>
  
  <pre><code>add.apply_async(args=[num1, num2, user]
  </code></pre>
  
  <p>In this case I want to store user argument in DB, so that I can query later.</p>
  
  <p>Currently, I return arguments provided which is stored in DB.</p>
  
  <pre><code>def add(num1, num2, user):
      return [num1+num2, user]
  </code></pre>
  
  <p>However when the task is running state, user is not inserted and I am unable to query it in DB. Is there any solution/hack for this?</p>