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
1
vote
1 answer

Celery - Testing - Which queue did the job go to

Simple question. How can I determine which queue the job went to when I have multiple queues defined. While I know I said go to the priority queue - how can I check to see if in fact that's the case?
rh0dium
  • 6,811
  • 4
  • 46
  • 79
1
vote
1 answer

Extend djcelery taskmeta table

I'd like to extend the djcelery taskmeta table, for example I have a scheduled task that returns an integer value. I'd like to add a field to store this value so I can graph this data along with the date_done field in the taskmeta table. I tried to…
Joe Lones
  • 479
  • 2
  • 6
  • 17
1
vote
2 answers

Save the Celery task in DB- Django

I'm referring to Django Celery documents. I created celery.py in my proj/proj just as the document said. and then included __init__.py celery.py from __future__ import absolute_import import os from celery import Celery from django.conf import…
Praful Bagai
  • 16,684
  • 50
  • 136
  • 267
1
vote
1 answer

import djcelery getting error

When importing djcelery i am getting the below error. Is there any other method to install? Traceback (most recent call last): File "manage.py", line 15, in import settings File "/home/c0mrade/Documents/wipi/wishpicker/settings.py",…
1
vote
1 answer

Djcelery forces the use of 'database' backend, how to properly bypass it?

In my Django project, I use no SQL database at all, my primary datastore is MongoDB, through mongoengine. I want to setup Celery to work with Redis as the broker and backend. I installed django-celery-with-redis, installed Redis (locally and in…
André Staltz
  • 13,304
  • 9
  • 48
  • 58
1
vote
0 answers

Celery is executing tasks every second for a once a year crontab

I'm trying to get a task to run at the end of the day on 1/1. So, I wrote this: @periodic_task(run_every = crontab( day_of_month=1, month_of_year=1, hour=23, minute=51) ) def tell_admins_about_completed_updates(): logging.info('Updates to…
Josh
  • 12,896
  • 4
  • 48
  • 49
1
vote
1 answer

Djcelery tasks still scheduled even after removing the task

I have scheduled a task using django celery (djcelery) by defining it as so: @periodic_task(run_every=timedelta(minutes=1)) def mytask(): # Do something I decided to remove this task from the codebase. However, even after restarting the celery…
zimkies
  • 1,067
  • 1
  • 9
  • 20
1
vote
0 answers

Django celery custom periodic task not executing

I tried using this code to try to dynamically add / remove scheduled tasks. My tasks.py file looks like this: from celery.decorators import task import logging log = logging.getLogger(__name__) @task def mytask(): log.debug("Executing task") …
nonocat
  • 35
  • 3
1
vote
0 answers

Cannot queue tasks using Django 1.5, django-celery 3.0.11 and mongodb

everyone. I have problem using Django==1.5 with django-celery==3.0.11 I get error: [Errno 61] Connection refused when I run following code from django shell from data_warehouse.tasks import add add.delay(4,4) settings.py INSTALLED_APPS +=…
1
vote
1 answer

Django celery beat pytz error on startup

Out of the blue I get the following error when trying to start my dev server with celery and celery beat. One day this thing works next day it doesn't, I haven't changed anything that could explain this. I start my server using foreman and a…
Allard Stijnman
  • 1,284
  • 11
  • 22
1
vote
0 answers

NotRegistered with djcelery + Heroku

I've been stuck on this one for the last 6 hours or so. So any help would be greatly appreciated. I am using djcelery on a Django app which is deployed on Heroku. Said app has a periodic task that works just fine. Today, I brought up another Heroku…
Yuval Cohen
  • 185
  • 1
  • 1
  • 6
1
vote
1 answer

Celery - resubmit failed task chain after max retries exceeded

I'm using celery with django. I'm having to provide an option for the user to inspect a failed task, make modifications to the failed task data if necessary and submit it again. I have seen this thread - Celery Storing unrecoverable task failures…
ksrini
  • 1,412
  • 2
  • 19
  • 33
1
vote
0 answers

First steps in celery(d) 3.0.9

In two shells, on the same machine, I do the following: a) /home/user/prod/env/bin/python /home/user/prod/www/devcode/manage.py celery worker -E and celery starts up, apparently with no problems b) /home/user/prod/env/bin/activate &&…
Andreas Neumeier
  • 338
  • 2
  • 10
1
vote
1 answer

In celery how to get task position in queue?

I'm using Celery with Redis as broker and I can see that the queue is actually a redis list with the serialized task as the items. My question is, if I have an AsyncResult object as a result of calling .delay(), is there a way to determine the…
Marconi
  • 3,601
  • 4
  • 46
  • 72
0
votes
1 answer

Dynamically change celery beat schedule params

I get schedule values from .env file. And sometimes parameters in .env file change. Is it possible to change schedule values of already running celery beat tasks? My celery.py: import os from celery import Celery from celery.schedules import…
1 2 3
8 9