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

django 1.11 with celery 4.0 and djcelery compatibility issues

I currently use django 1.11 and I'm forced to use an older version of celery (3.1) for compatibility reasons. I want to upgrade to celery 4.0 because another part of our application needs the later version of celery. Is there a combination of…
chris
  • 1,869
  • 4
  • 29
  • 52
3
votes
2 answers

Celery: How '|' operator works while chaining multi tasks?

I know | is a bitwise 'Or' operator but it makes me wonder that how it works in case of celery while chaining multiple tasks. (first_task.s(url) | second_tasks.s()).apply_async() I know that second task would take result of the first function as…
Humble Learner
  • 791
  • 12
  • 26
3
votes
0 answers

Django celery PeriodicTask task under the class?

I want to use some function to be timing task My views.py: class SomeHandler: def __init__(self, user, instance): self.user = user self.instance = instance @task(filter=task_method) def send_some_msg(self, send_type): …
MrFrank
  • 263
  • 1
  • 2
  • 6
3
votes
1 answer

Celery events specific to a queue

I have two Django projects, each with a Celery app: - fooproj.celery_app - barproj.celery_app Each app is running its own Celery worker: celery worker -A fooproj.celery_app -l info -E -Q foo_queue celery worker -A barproj.celery_app -l info -E -Q…
Richard Knop
  • 81,041
  • 149
  • 392
  • 552
3
votes
0 answers

How do I write a custom decorator that correctly passes arguments to a celery task?

Background and question I'm using Django 1.5.1 and django-celery 3.0.17. I want to write a custom decorator to ensure that only one instance of the function runs at a time, similar to this but without all the repeated try/finally. How can I write a…
3
votes
3 answers

Django: djcelery Import error from celery import current_app as celery in virtualenv

Okay so I have tried everything I and google can come up. I'm trying to run django-celery under a virtualenv on my Macbook Pro OSX 10.8.4. I installed django-celery using pip while the virtualenv was activated. I get the following when importing…
Chris Calitz
  • 86
  • 1
  • 5
3
votes
1 answer

Celery task id in task_revoked handler

So I have a task that creates a work directory and does all its work there. The task is called from server A and executed on worker servers. I need to make sure the work directory is deleted once the task is done/canceled. I added a task revoked…
JayDL
  • 215
  • 5
  • 12
3
votes
1 answer

Django Celery Chord Not Executing

I have a program that generates a large list of products through Python's itertools; basically a big set of various combinations of words. There are multiple sets to run through the products() function. What I would like to do is get Celery to help…
kensentor
  • 443
  • 2
  • 15
3
votes
1 answer

Is it possible to show progress bar of django celery task?

I am using database backend in django celery. The task information is stored in a table called: celery_taskmeta in database. This is my task: @celery.task def file_transfer(password, source12, destination): result = subprocess.Popen(['sshpass',…
pynovice
  • 7,424
  • 25
  • 69
  • 109
3
votes
2 answers

Unusual warning with djcelery, billiard, and the django_settings_module

When running manage.py celeryd for async processes, everything works as expected but i'm getting a weird warning at every start-up. It's not causing any errors, but i'm having trouble making it disappear or understanding its meaning. Here it…
Lucas Ou-Yang
  • 5,505
  • 13
  • 43
  • 62
2
votes
1 answer

celery tasks converts python list into strings. how to avoid this?

I have an email sending tasks running in celery shared task. i am passing a python list into html template. but celery converts this list into string. but without using celery task , i am getting actual list.
tins johny
  • 195
  • 1
  • 13
2
votes
1 answer

How to use Async Task in django 1.10 to run in background?

I am looking for an option to use in my Django 1.10 web project where I need to run some task every hour. I know I can use DJCELERY but it is not updated for Django 1.10 and I am getting these errors, Error fetching command 'celerymon': type object…
Amit Pandya
  • 361
  • 1
  • 3
  • 19
2
votes
1 answer

Django: Celery Worker not getting started (without any error)

I am trying to configure djcelery in my Django Application backed by rabbitmq server on Ubuntu 14.04 machine hosted on Google Compute Engine. On attempt to start celery in debug mode using: python manage.py celery worker -B -E --loglevel=debug,…
Moinuddin Quadri
  • 46,825
  • 13
  • 96
  • 126
2
votes
0 answers

Djcelery obsolete, but how allow user to add periodic tasks without it?

Djcelery is now to be regarded as obsolete, but using just plane celery and django I don't see a way to allow an app admin user to schedule a periodic task. I can hardcode one into the django settings file using CELERYBEAT_SCHEDULE, but that is…
fpghost
  • 2,834
  • 4
  • 32
  • 61
2
votes
0 answers

--url_prefix not supported anymore, so Flower can only run on root now?

Although using --url_prefix parameter does not give error when running Flower, but it doesn't work anymore. Also deprecated is written on this parameter in the comments in latest source code. So does there exist an alternative to this parameter or…
Muhammad Tahir
  • 5,006
  • 1
  • 19
  • 36
1
2
3
8 9