Skip to content
Advertisement

Tag: celery-task

python celery monitoring events not being triggered

I have a following project directory: tasks.py main.py monitor.py Started celery worker with And started monitor.py with But Only worker-online event is being triggered, while other events like task-succeeded is not triggered or handled. What am I missing here? Answer Enable worker task- group events with cli option -E or –task-events and try to capture all events:

python celery invalid value for -A unable to load application

I have a following project directory: task.py main.py When I run a command to initialize celery workers, I get this error: But when I rename main.py to celery.py as it was earlier there’s no issue. What am I missing here? Answer There are two approaches import your app to azima/__init__.py You can omit the last line, celery will recognize the

Advertisement