Questions tagged [djcelery]

For questions about djcelery, the django-celery pluggable app for Celery integration with Django.

djcelery refers to pluggable app for Celery integration with Django.

122 questions
2
votes
1 answer

Flower UI does not show celery workers and Tasks

I have installed flower for my django app using pip install flower. I start it using the command ./manage.py celery flower --port=5555. I get the following output after that. [I 150324 16:40:47 command:106] Visit me at http://localhost:5555 [I…
user2890683
  • 403
  • 2
  • 6
  • 18
2
votes
1 answer

Celery task routing doesn't work when using current_app.send_task

I have an issue with Celery queue routing when using current_app.send_task I have two workers (each one for each queue) python manage.py celery worker -E -Q priority --concurrency=8 --loglevel=DEBUG python manage.py celery worker -Q low…
mou55
  • 660
  • 1
  • 8
  • 13
2
votes
1 answer

Unable to connect to celery task from a celery signal?

I am trying to connect task2 from task_success signal from celery.signals import task_success from celery import Celery app = Celery() @app.task def task1(): return 't1' @app.task def task2(): return 't2' task_success.connect(task2,…
Chillar Anand
  • 27,936
  • 9
  • 119
  • 136
2
votes
1 answer

Celery as a service with Django

I'm trying to use Celery in my Django project. and as usual, I googled stuff, read few SOF questions regarding the same, few blogs, and of course official docs. but its very confusing when it comes to run celery as a service in django. I didn't find…
Nancy
  • 997
  • 1
  • 8
  • 12
2
votes
1 answer

Get Celery task name from inside Django

I have a Django 1.5.1 webapp using Celery 3.0.23 with RabbitMQ 3.1.5. When reading the TaskMeta informations from my backend using from djcelery.models import TaskMeta TaskMeta.objects.all() I cannot read the task name (it is usually the method…
Alessandro Da Rugna
  • 4,571
  • 20
  • 40
  • 64
2
votes
1 answer

Django celery running only two tasks at once?

I have a celery task like this: @celery.task def file_transfer(password, source12, destination): result = subprocess.Popen(['sshpass', '-p', password, 'rsync', '-avz', source12, destination], …
pynovice
  • 7,424
  • 25
  • 69
  • 109
2
votes
0 answers

celery task not acnowledged after warm shutdown of worker

I'm new to djcelery development. I want to shutdown a worker from a button on the web interface. So I'm calling the following task when the button is clicked in tasks.py: result = broadcast('shutdown', destination=[worker.hostname]) I notice if…
1
vote
1 answer

Celery's task_reject_on_worker_lost doesn't work with Redis as message broker

I'm currently using version 5.2.6 of Celery and version 6.2.6 of Redis. When I turn on the task_reject_on_worker_lost flag, I am expecting Celery to redeliver a task executed by a worker that died abruptly. However, trying this on Redis as message…
Jessica
  • 721
  • 1
  • 6
  • 13
1
vote
1 answer

Register celery periodic tasks to see it within django admin

I am trying to code some periodic background tasks within Django and Celery. My tasks are working well, I manage to start those periodically when launching my celery worker with beat scheduler : celery -A parifex worker -B -l info Discovered tasks…
Devart
  • 320
  • 4
  • 18
1
vote
1 answer

How to fix "Celery is receiving tasks but while executing it stuck"

I am working with AI image processing job where I am using Django rest framework, Python3, tensorflow and keras along with Celery to process asynchronous task. I am also using the redis server. But while I am executing the celery task it is…
1
vote
1 answer

Any way to make @periodic_task run on call only,it runs automatically on project starts?

Is there any way to make periodic_task to run on call only, I see Pingit() starts as soon as i run my django-app python manage.py runserver @periodic_task(run_every=crontab(minute="*/1"),options={"task_id":task_name}) def Pingit(): …
Arbazz Hussain
  • 1,622
  • 2
  • 15
  • 41
1
vote
2 answers

django-celery-beat not creating tables

I've installed django-celery-beat via: pip install django-celery-beat Installed the app on my django project INSTALLED_APPS = [ ... 'django_celery_beat', ... ] ran migration via python manage.py migrate django-celery-beat I don't get any error…
user3007270
  • 406
  • 4
  • 15
1
vote
1 answer

Celery connect to remote server broker_url

I'm daemonizing celery following the docs. My BROKER_URL has been set in the following format:- 'amqp://:@/'. So, when I start celery manually, celery worker -A app_name, it connects with the remote server. But when I…
Praful Bagai
  • 16,684
  • 50
  • 136
  • 267
1
vote
2 answers

DJCelery not storing task results in Django SQLite DB

DJCelery is not storing task results in my Django SQLite DB. I have an existing Django project that I have started setting up Celery w/ RabbitMQ on. I started my RabbitMQ server. I can run Celery python manage.py celeryd --verbosity=2…
Andrew_CS
  • 2,542
  • 1
  • 18
  • 38
1
vote
1 answer

How to kill a celery task

tasks.py @task def daterange(): import datetime some = Poll.objects.all() schedule = Schedule.objects.all() for c in schedule : p = c.poll e = c.end_time s = c.start_time n = int(c.no_of_response) …
naveen
  • 71
  • 1
  • 5
1 2
3
8 9