title: Django celery multiple workers with specific concurrencies
body: <p>I have to call some stored procedures from the database(oracle). I use celery and redis to call this SP in asynchronous way.</p>
  
  <p>tasks.py</p>
  
  <pre><code>@task
  def carga_ftp():
      tabla = Proc_Carga()
      sp = tabla.carga()
      return None
  
  @task
  def conci(idprov,pfecha):
      conci = Buscar_Conci()
      spconc = conci.buscarcon(idprov,pfecha)
      return None
  </code></pre>
  
  <p>I need to specify diferent concurrencies for every task. for the task CONCI I need a concurrency of 1, for the task CARGA_FTP a concurrency of 3 or more</p>
  
  <pre><code>celery multi start -A provcon conc carga -c:conc 1 -c:carga 3
  </code></pre>
  
  <p>My celery settings in the file settings.py </p>
  
  <pre><code>BROKER_URL = 'redis://localhost:6379/0'
  CELERY_IMPORTS = ("pc.tasks", )
  CELERY_ACCEPT_CONTENT = ['json']
  CELERY_TASK_SERIALIZER = 'json'
  CELERY_RESULT_SERIALIZER = 'json'
  CELERY_RESULT_BACKEND='djcelery.backends.cache:CacheBackend'
  CELERY_ROUTES = {"tasks.conci": {"queue": "conc"}, "tasks.carga_ftp": {"queue": "carga"}}
  </code></pre>
  
  <p>but the worker "CONC" take more than 1 task at the same time and the worker "CARGA" take more than 3 tasks at the same time too</p>
  
  <p>When I see the process</p>
  
  <pre><code>ps aux | grep 'celery'
  </code></pre>
  
  <p>I see two process for the worker "CONC" and four the worker "CARGA" have 4 process.</p>
  
  <p>I don't know if I miss something or if my commando to execute celery is wrong.
  But I need only one task at time for the task "CONCI"</p>
  
  <p>Any advice</p>
  
  <p>Thanks in advance</p>