Skip to content

Tag: celery

Module ‘project_name’ has no attribute ‘celery’

I’m trying to set up a background task using celery and rabbitmq on django but I’m getting an error saying that my project has no attribute celery. I’m using PyCharm and installed celery through that. I’m new to celery but I’ve read a lot of articles similar to this issue (Attrib…

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…

Run a same celery task in loop

how to run this kind of celery task properly? I need all tasks to be performed sequentially after the previous one is completed. I tried using time.sleep() but in this case returning result waits until all tasks are completed. But I need the result returned and all 10 tasks are running sequentially in the bac…