title: Django Celery FIFO
body: <p>So I have this 2 applications connected with a REST API (json messages). One written in Django and the other in Php. I have an exact database replica on both sides (using mysql).</p>
  
  <p>When i press "submit" on one of them, i want that data to be saved on the current app database, and start a cron job with celery/redis to update the remote database for the other app using rest.</p>
  
  <p><em><strong>My question is, how do i attribute the same worker to my tasks in order to keep a FIFO order?</em></strong> </p>
  
  <p>I need my data to be consistent and FIFO is really important.</p>
  
  <p>Ok i am going to detail what i want to do a little further:</p>
  
  <p>So i have this django app, and when i press submit after i fill in the form my celery worker wakes up and takes care of taking that submitted data and posting to a remote server. This i can do without problems.</p>
  
  <p>Now, imagine that my internet goes down at that exact time, my celery worker keeps retrying to send until it is successful  But imagine i do another submit before my previous data is submitted, my data wont be consistent on the other remote server.</p>
  
  <p>Now that is my problem. I am not able to make this requests FIFO with the retry option given by celery so i that's were i need some help figuring that out.</p>