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
11
votes
1 answer

Django/djcelery 1.8.2 AppRegistryNotReady: Translation infrastructure cannot be initialized

I am getting the following error: File "/Library/Python/2.7/site-packages/Django-1.8.2-py2.7.egg/django/utils/translation/trans_real.py", line 164, in _add_installed_apps_translations "The translation infrastructure cannot be initialized before the…
Manas
  • 399
  • 1
  • 4
  • 13
11
votes
1 answer

Celery chain breaks if one of the tasks fail

What is the point of Celery chain if the whole chain breaks if one of the tasks fail?!! I have this Celery chain: res = chain(workme.s ( y=1111 ), workme2.s( 2222 ), workme3.s( 3333 ),)() And I made workme2 fails with retries like…
securecurve
  • 5,589
  • 5
  • 45
  • 80
10
votes
3 answers

Python Celery - How to call celery tasks inside other task

I'm calling a task within a tasks in Django-Celery Here are my tasks. @shared_task def post_notification(data,url): url = "http://posttestserver.com/data/?dir=praful" # when in production, remove this line. headers = {'content-type':…
Praful Bagai
  • 16,684
  • 50
  • 136
  • 267
10
votes
3 answers

Celery versus djcelery

I am confused between the differences between these two applications while trying to setup celery on my django project. What are the differences between the two if any? When reading tutorials online I see them both used, and i'm not sure which would…
Lucas Ou-Yang
  • 5,505
  • 13
  • 43
  • 62
10
votes
3 answers

How to properly configure djcelery results backend to database

I'm trying to setup djangocelery to store task results in the databse. I set: CELERY_RESULT_BACKEND = 'djcelery.backends.database.DatabaseBackend' then I synced and migrated the db (no errors). Celery is working and tasks get processed (I can get…
jb.
  • 23,300
  • 18
  • 98
  • 136
9
votes
3 answers

Celery - "WorkerLostError: Worker exited prematurely: signal 11 (SIGSEGV)"

I am working on a Django app locally that needs to take a CSV file as input and run some analysis on the file. I am running Celery, RabbitMQ, and web server locally. When I import the file, I see the following error on the Celery…
Joe Fusaro
  • 847
  • 2
  • 11
  • 23
8
votes
2 answers

Celery beat queue includes obsolete tasks

I'm using periodic celery tasks with Django. I used to have the following task in my app/tasks.py file: @periodic_task(run_every=timedelta(minutes=2)) def stuff(): ... But now this task has been removed from my app/tasks.py file. However, I keep…
Régis B.
  • 10,092
  • 6
  • 54
  • 90
7
votes
1 answer

Checking the next run time for scheduled periodic tasks in Celery (with Django)

*Using celery 3.1.25 because django-celery-beat 1.0.1 has an issue with scheduling periodic tasks. Recently I encountered an issue with celerybeat whereby periodic tasks with an interval of a day or longer appear to be 'forgotten' by the scheduler.…
FatHippo
  • 177
  • 3
  • 12
7
votes
1 answer

How to resolve this error? "RestartFreqExceeded: 5 in 1s" in django+celery+rabbitmq+mysql+redis

So I am using django with celery. rabbitmq is the broker. redis is the cache. mysql is the db. (everything in localhost) I am using python2.7 and using virtualenv based virtual environment I start the redis server (local) at default port In a new…
TheRajVJain
  • 390
  • 5
  • 15
6
votes
2 answers

python celery - how to add CELERYBEAT_SCHEDULE task at runtime to a worker?

I have created a celery worker with a single celerybeat schedule task which runs at 5 seconds time interval. How can I add another beat task dynamically to the celery worker without stopping it? Example app.conf.update( …
muhil varnan
  • 320
  • 2
  • 9
6
votes
1 answer

How should I implement callback for taskset in celery

Question I use celery to launch task sets that look like this: I perform a batch of tasks that can be run in parallel, number of tasks in this batch varies from tens to couple thousands. I aggregate results of these tasks into single answer, then…
jb.
  • 23,300
  • 18
  • 98
  • 136
5
votes
0 answers

Celery task error infinite loop

I have an issue using celery with my DJANGO application. When a task have an error the tasks enter in a loop and start again instead of finish the task My task run a stored procedure from the database. In the stored procedure I have if there any…
joselegit
  • 533
  • 1
  • 14
  • 35
4
votes
0 answers

Unknown migration for 'djcelery:0001_initial' when migrating Django application using South

I got following error when migrating my Django application using South. from django.db import models, migrations ImportError: cannot import name migrations I use Django==1.5.7 django-celery==3.2.1 and South==1.0.1 in my application. This…
Parinda Rajapaksha
  • 2,963
  • 1
  • 36
  • 40
4
votes
1 answer

Monitor Pending Celery Tasks

I'm using Celery with RabbitMQ backend. How can I monitor and get the number of pending tasks? "celery events" and djcelery shows the running and completed tasks. Should I be monitoring RabbitMQ? If so how?
Ruggiero Spearman
  • 6,735
  • 5
  • 26
  • 37
3
votes
0 answers

how to activate virtual environment and run celery commands to activate djcelery in server startup?

How to activate virtual environment in server startup? When server restart i need to activate celery and workers. I am using ubuntu instance. Is cron jobs can do it? this is the code i am using for starting celery tasks. i am using djcelery and…
tins johny
  • 195
  • 1
  • 13
1
2 3
8 9