<p dir="auto">Right now, it seems like the only way to set <a href="http://docs.celeryproject.org/en/latest/reference/celery.bin.worker.html?highlight=fair#cmdoption-celery-worker-O" rel="nofollow">-Ofair</a> is via the command line.</p>
<p dir="auto">Is there also a way to set this programmatically in <code class="notranslate">celeryconfig.py</code>, or in Django's <code class="notranslate">settings.py</code>?</p>
<p dir="auto">Can Celery expose a configuration parameter for the optimisation parameter(currently only passable on the command line as <code class="notranslate">-Ofair</code>.</p>