title: Celery: different settings for task_acks_late per worker / add custom option to celery
body: <p>This question is a follow up of <a href="https://stackoverflow.com/questions/58290045/django-celery-disable-prefetch-for-one-worker-is-there-a-bug">django + celery: disable prefetch for one worker, Is there a bug?</a></p>
  
  <p>I had a problem with celery (see the question that I follow up) and in order to resolve it I'd like to have two celery workers with -concurrency 1 each but with two different settings of task_acks_late.</p>
  
  <p>My current approach is working, but in my opinion not very beautiful. I am doing the following:</p>
  
  <p>in <code>settings.py</code> of my django project:</p>
  
  <pre><code>CELERY_TASK_ACKS_LATE = os.environ.get("LACK", "False") == "True"
  </code></pre>
  
  <p>This allows me to start the celery workers with following commands:</p>
  
  <pre><code>LACK=True celery -A miniclry worker --concurrency=1 -n w2 -Q=fast,slow --prefetch-multiplier 1 
  celery -A miniclry worker --concurrency=1 -n w1 -Q=fast
  </code></pre>
  
  <p>What would be more intuitive would be if I could do something like:</p>
  
  <pre><code>celery -A miniclry worker --concurrency=1 -n w2 -Q=fast,slow --prefetch-multiplier 1 --late-ack=True
  celery -A miniclry worker --concurrency=1 -n w1 -Q=fast --late-ack=False
  </code></pre>
  
  <p>I found <a href="https://stackoverflow.com/questions/44981155/initializing-different-celery-workers-with-different-values">Initializing Different Celery Workers with Different Values</a> but don't understand how to embed this in my django / celery context. In which files would I have to add the code that's adding an argument to the parser and how could I use the custom param to modify  task_acks_late of the celery settings.</p>
  
  <p><strong>Update:</strong>
  Thanks to @Greenev's answer I managed to add custom options to celery. However it seems, that changing the config with this mechanism 'arrives too late' and the chagne is not taken into account.</p>