Skip to main content
Filter by
Sorted by
Tagged with
1 vote
1 answer
464 views

I followed the code from the below Working example of celery with mongo DB Getting the below error CRITICAL/MainProcess] Unrecoverable error: TypeError("'Collection' object is not callable. If ...
Akhil Pakkath's user avatar
2 votes
2 answers
1k views

I tried to use the on_commit method as they tell us in the docs, but I still get ModelDoesNotExistError inside the task launched via delay(). views.py: class SomeViewset(viewsets.ModelViewset): ......
Jedi Knight's user avatar
16 votes
2 answers
20k views

Although celery reports no problems at start and says it successfully connected to redis (see log), I get this error running celery inspect ping Traceback (most recent call last): File "/usr/...
Jedi Knight's user avatar
0 votes
1 answer
756 views

I hae recently deployed a django app in digitalocean. My app uses celery and redis for several email sending puposes and scheduled tasks. I have been searching for a documentation on how to connect ...
Ritankar Bhattacharjee's user avatar
0 votes
0 answers
237 views

I have a simple Group model: class Group(models.Model): leader = models.ForeignKey(User, on_delete=models.CASCADE) name = models.CharField(max_length=55) description = models.TextField() ...
Yehuda's user avatar
  • 133
1 vote
0 answers
331 views

Having a major issue I cannot track down and I'm spinning my wheels. Any help would be greatly appreciated. I have django, celerybeat and celeryworker containers that all use the same base image of ...
tsantor's user avatar
  • 554
1 vote
1 answer
429 views

I have a system that has important long-running tasks which are executed by Celery workers. Assume that we have deployed our application using k8s or docker-compose. How can I change the celery ...
Hamed Feizabadi's user avatar
1 vote
1 answer
2k views

I was trying to use Celery to query an external api at a regular frequency and update my database in my Django project with the new data. Celery schedules the task correctly and sends it to the celery ...
the_nerdman's user avatar
7 votes
1 answer
4k views

So we have a kubernetes cluster running some pods with celery workers. We are using python3.6 to run those workers and celery version is 3.1.2 (I know, really old, we are working on upgrading it). We ...
Antonio Gamiz Delgado's user avatar
0 votes
2 answers
370 views

I am looking to run tasks in parallel with django celery. Let's say the following task: @shared_task(bind=True) def loop_task(self): for i in range(10): time.sleep(1) print(i) ...
Ridha Kchouk's user avatar
1 vote
1 answer
484 views

I'm trying to creating a background task with Django celery and Redis as broker. this task is being sent from models when model post save. But the problem is that, the same task is getting executed ...
Kuldeep's user avatar
  • 141
4 votes
0 answers
329 views

I have searched about this but did not get an expected answer. There is the same question asked but it applies to redis which can be solved by setting, BROKER_TRANSPORT_OPTIONS = {'visibility_timeout':...
codemastermind's user avatar
0 votes
1 answer
46 views

I have a simple UserRegistration view: class UserRegistration(generic.CreateView): form_class = RegisterForm template_name = 'registration/registration.html' success_url = reverse_lazy('...
Yehuda's user avatar
  • 133
0 votes
1 answer
313 views

I want to send reminder emails based on different dates saved in the database. I saw some links that was kinda related to that but most of them was really messy. Table send_email_at: [2022/07/12, 2022/...
Mark Kiraly's user avatar
0 votes
3 answers
2k views

I have a Group model: class Group(models.Model): leader = models.ForeignKey(User, on_delete=models.CASCADE) name = models.CharField(max_length=55) description = models.TextField() joined = ...
Yehuda's user avatar
  • 133
0 votes
1 answer
1k views

I have a Celery task that runs the main function of external Python scripts. However, some of the scripts may take a very very long time to execute and I'd like to set a time limit after which the ...
Balizok's user avatar
  • 1,105
0 votes
0 answers
667 views

dear community members. I have created a Django project which working totally fine with whatever API I called. But here I have one small query that there are 2 APIs from which from both APIs while get ...
Dieharder_3's user avatar
0 votes
1 answer
430 views

Sending email to the users based on the due date in model using the celery, the due_date is something different from date when a task is created Models.py class Task(BaseModel): name = models....
mikan's user avatar
  • 75
1 vote
1 answer
1k views

I want to shut down celery workers specifically. I was using app.control.broadcast('shutdown'); however, this shutdown all the workers; therefore, I would like to pass the destination parameter. When ...
Ayodele Ashad's user avatar
1 vote
0 answers
1k views

I want to use 2 different CELERY_BROKER_URL for 2 different IP's and specific task should go in the another URL (ex - redis://127.0.0.2:6379). environment file CELERY_TASK_TRACK_STARTED=True ...
Altafahmed's user avatar
0 votes
0 answers
107 views

I'm using Celery in Django and the workers are eating up all of the memory of my Dynos in Heroku. Setting the --max-tasks-per-child seems to be a valid solution but I can't seem to find what the ...
John R Perry's user avatar
  • 4,222
6 votes
2 answers
5k views

I have this error A rediss:// URL must have parameter ssl_cert_reqs and this must be set to CERT_REQUIRED, CERT_OPTIONAL, or CERT_NONE settings CELERY_BROKER_URL = os.environ.get('REDIS_URL', "...
Sidi Zawi's user avatar
  • 355
2 votes
0 answers
150 views

For different celery job groups, how can we limit the number of workers asynchronously differently. Here is a good reference on how to group different celery tasks together : https://sayari3.com/...
2017561-1's user avatar
  • 149
0 votes
1 answer
680 views

How I can run a another method action() automatically when a set of celery tasks is finished. Are there any simple way to trigger another function call on completion? #tasks.py @app.task def rank(item)...
2017561-1's user avatar
  • 149
1 vote
1 answer
1k views

I am using celery and django-celery-results in my Django application. My celery results are being stored in the backend and this is what celery.py looks like. os.environ.setdefault("...
Prakhar Rathi's user avatar
1 vote
1 answer
1k views

I have a long running celery task which I can see it in flower at the beginning of execution but after some hours, it's like it doesn't exist! All I see in task details page is Unknown task '894a8b45-...
Mehraban's user avatar
  • 3,362
0 votes
1 answer
1k views

I am using celery with my django application. My application works fine with mysql database, but I am getting (2000, 'Unknown MySQL error') when celery tries to access the database. This happens only ...
michael's user avatar
  • 700
0 votes
0 answers
134 views

I'm starting Celery+RabbitMQ to use async functions on my Django system and I'm facing some issues. As I understand it, when using Celery+RabbitMQ, the function that I insert in my tasks.py file will ...
Rafael Vinicius's user avatar
0 votes
1 answer
240 views

I have a Django app and I am using celery (with redis) for running processing tasks in the background. In addition, I have a python thread which runs some periodic checks as part of my Django app. ...
michael's user avatar
  • 700
0 votes
1 answer
1k views

I was using celery and rabbitmq to send email to the user who has logged in. However when I am running my celery worker I am getting : My project name is myproject and the appname is app celery -A ...
Himanshu Poddar's user avatar
0 votes
1 answer
465 views

I set up a project using the django cookie cutter and deployed it with the docker option https://cookiecutter-django.readthedocs.io/en/latest/deployment-with-docker.html Celery perfectly works on my ...
Matthias's user avatar
  • 223
2 votes
0 answers
236 views

I am creating a site that downloads videos from other sites and converts them to GIF when requested. The problem is that it takes too long to download and convert videos. This causes a 504 timeout ...
helloworld's user avatar
2 votes
1 answer
2k views

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 ...
Jessica's user avatar
  • 811
1 vote
2 answers
1k views

I have a task in Celery that looks like this: @app.task(name='task_one') def task_one(user_id, *args, **kwargs): # Long running task This task is created in views every time a user submits a form,...
Stack's user avatar
  • 1,159
0 votes
1 answer
867 views

According to the celery documentation on Celery using Redis broker, The visibility timeout defines the number of seconds to wait for the worker to acknowledge the task before the message is ...
Jessica's user avatar
  • 811
-1 votes
1 answer
189 views

Celery seems to be picking both my old code and new code. I have tried clearing cache, clearing the broker queue(redis), restarting celery etc. But none of them seem to be fixing this issue. For ...
Vasanth S's user avatar
1 vote
0 answers
155 views

I've got a django application running on AWS EC2 using Celery for periodic updates. I recently had to update a data processing script on the Django app, but no matter what I seem to try, Celery ...
Alicia's user avatar
  • 169
0 votes
0 answers
190 views

I try to learn and pratice celery with Django and it works only in a localhost environment. The problem that I have is when I build it on another environment it returns an error like this web_1 ...
Srt_person's user avatar
4 votes
1 answer
2k views

the usage in 4.x.x was as following: from tenant_schemas_celery.app import CeleryApp class TenantCeleryApp(CeleryApp): def create_task_cls(self): return self.subclass_with_self('...', ...
user avatar
0 votes
1 answer
398 views

I am using the official celery project for django, but it is not working on my machine. I have installed all the necessary modules, and am using the example given in the link: Example Django project ...
Diego Freire's user avatar
0 votes
1 answer
650 views

I have a Django view that exports an Excel File and prompts a Download Dialog when the file is ready. I am installing Celery and RabbitMQ to make this task a background task. This means that the excel ...
Kaiss B.'s user avatar
  • 357
0 votes
1 answer
2k views

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 ...
user3063419's user avatar
0 votes
1 answer
3k views

If we use celery beat and run about 1000 tasks by same crontab schedule, will tasks run one by one or some tasks will not run (cause of out of time)? redis as MQ
Alice_nvbr's user avatar
1 vote
0 answers
224 views

I am running an app on a limited service host, where my Redis server has a maximum of 50 connections. I have configured my web app to be using a consistent 20 Redis connections. However, if I launch ...
Dan K's user avatar
  • 145
0 votes
1 answer
245 views

I have a model named Flights class Flights(models.Model): field = models.ForeignKey(Field, on_delete=models.CASCADE) datetime = models.DateTimeField(blank=True, null=True, default=timezone.now(...
haduki's user avatar
  • 848
-1 votes
1 answer
940 views

I actually had issues printing mine on command prompt because I was using the wrong command but I found a link to a project which I forked Project (If on Mac ) celery -A Project worker --loglevel=...
Codertjay's user avatar
  • 1,087
1 vote
1 answer
1k views

I am trying to use Celery to send anywhere from 1 to about 25 consecutive requests to a third-party API. The measure of success is whether I get a URL back in the response payload: response_json["...
dr_rompecabezas's user avatar
-1 votes
2 answers
546 views

I will import my models in celery.py. But when I import and run the runserver command, I get the following error: File "/directory/manage.py", line 22, in <module> main() File &...
ibrahim demet's user avatar
0 votes
1 answer
819 views

In my django project, I have made a view class by using TemplateView class. Again, I am using django channels and have made a consumer class too. Now, I am trying to use celery worker to pull queryset ...
Ahnaf Tahmid Chowdhury's user avatar
0 votes
1 answer
782 views

I am running celery v5.2.3 in a docker container running ubuntu. Here I am trying to get celery chords to work but every attempt I make give me: File "/usr/local/lib/python3.7/site-packages/...
Thorvald Jørgensen's user avatar

1 2 3
4
5
35