Skip to content

Tag: celery

Celery – No module named five

After updating celery and django-celery to 3.1: I run into this error when starting my server: Using: Django 1.4.21 Python 2.7 Answer Last version of vine is 5.0.0 and fresh push was in 06.09.2020 (yesterday) :), and this version do not have any five.py file. So downgrade vine version to. vine==1.3.0 works fo…

celery doesn’t work with global variable

this is the code I used to test celery. I hope every time I use addone() the return value should increase. But it’s always 1 why??? Results Answer By default when a worker is started Celery starts it with a concurrency of 4, which means it has 4 processes started to handle task requests. (Plus a process…

Create celery tasks then run synchronously

My app gathers a bunch of phone numbers on a page. Once the user hits the submit button I create a celery task to call each number and give a reminder message then redirect them to a page where they can see the live updates about the call. I am using web sockets to live update the status of each

How to inspect and cancel Celery tasks by task name

I’m using Celery (3.0.15) with Redis as a broker. Is there a straightforward way to query the number of tasks with a given name that exist in a Celery queue? And, as a followup, is there a way to cancel all tasks with a given name that exist in a Celery queue? I’ve been through the Monitoring and …

Celery Received unregistered task of type (run example)

I’m trying to run example from Celery documentation. I run: celeryd –loglevel=INFO tasks.py: run_task.py: In same folder celeryconfig.py: When I run “run_task.py”: on python console errors on celeryd server Please explain what’s the problem. Answer You can see the current list of…