title: How can i use celery with different code base in API and workers
body: <p>Currenty  I have one Ec2 Instance for  incomming API requests</p>
  
  <ol>
  <li>User orders goes to queue in redis via celery task</li>
  <li>I have 2 Ec2 instances processing queues</li>
  </ol>
  
  <p>The problem is the code base is same on both API and celery workers. because e,g</p>
  
  <p>I use <code>cutsomer.process_order(order_id)</code></p>
  
  <p>Then worker does the rest.</p>
  
  <p>Is there any way that i separate API from worker code. I want to make API in separate code base and workers in separate code base</p>