'How to Print celery worker details on windows and mac

I actually had issues printing mine on command prompt because I was using the wrong command but I found a link to a project which I forked Project

  • (If on Mac ) celery -A Project worker --loglevel=info
  • (If on Windows) celery -A Project worker -l info --pool=solo


Solution 1:[1]

Run

celery -A Project worker --loglevel=info

in project folder where your celery object is created. You can use the file name to get your tasks discovered. For Example: if your file name is tasks.py and celery object is created in that file. Command will be:

celery -A tasks worker --loglevel=info

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Javad Nikbakht