I\'ve define a Celery app in a module, and now I want to start the worker from the same module in its __main__, i.e. by running the module with
Celery
__main__
worker_main was put back in celery 5.0.3 here: https://github.com/celery/celery/pull/6481
worker_main
This worked for me on 5.0.4:
self.app.worker_main(argv = ['worker', '--loglevel=info', '--concurrency={}'.format(os.environ['CELERY_CONCURRENCY']), '--without-gossip'])