Skip to main content
Filter by
Sorted by
Tagged with
2 votes
1 answer
262 views

I'm trying to acces https://docs.celeryproject.org/en/stable/django/first-steps-with-django.html but getting 404. Is celery not officially available?
Piyush Kumar's user avatar
0 votes
0 answers
107 views

I have celerybeat running as a service on ubuntu. Generally speaking, everything works great. I have the same setup on numerous servers. Last night, I noticed the frequency at which a certain task ...
davjfish's user avatar
  • 355
0 votes
2 answers
1k views

I got following Celery beat task which cleans 1000 items daily at 1 AM: from celery.schedules import crontab from .celery import app as celery_app celery_app.conf.beat_schedule['maintenance'] = { ...
jing's user avatar
  • 2,051
0 votes
1 answer
2k views

I have faced the error "kombu.exceptions.EncodeError: Object of type 'JsonResponse' is not JSON serializable " In my settings.py : CELERY_BROKER_URL = 'amqp://localhost' ...
Rana's user avatar
  • 7
3 votes
0 answers
729 views

I have a celery task that creates a modal object. I'm trying to run some code after the object is created using django post_save signal. but for some reason, the signals are not firing. models.py ...
Arun Laxman's user avatar
0 votes
0 answers
548 views

I am using the WebsocketConsumer consumer and when I disconnect the websocket connection it gives the below error. Also when I have already one open connection and when I try to create a connection ...
Subham's user avatar
  • 711
0 votes
0 answers
120 views

A legacy django & celery based service has been writing payloads in a newline to a file using celery workers. But I noticed a lot of malformed payloads ... A payload would start in the middle of ...
ProgramSpree's user avatar
0 votes
0 answers
1k views

I know this has something to do with python not recognizing the standard library celery but I haven't found anything helpful online so far: pip freeze output: amqp==5.0.9 asgiref==3.5.0 backports....
Justin Benfit's user avatar
2 votes
1 answer
1k views

environment: Django3.1, celery5.2 Django setting.py CELERY_RESULT_BACKEND = 'django-db' CELERY_BROKER_URL = 'redis://127.0.0.1/0' CELERYD_CONCURRENCY = 2 # 并发worker数 # CELERYD_PREFETCH_MULTIPLIER=1 ...
bulay's user avatar
  • 41
0 votes
1 answer
983 views

The command to start the background process is, nohup python manage.py process_tasks & Similarly in Linux which is the command used to check running status?
sneha's user avatar
  • 81
0 votes
2 answers
1k views

I have celery class-based task from celery import Task from django.db import transaction from config import celery_app class RefreshData(Task): name = "refresh-data" @transaction....
Headmaster's user avatar
  • 2,352
0 votes
0 answers
280 views

CELERY_BROKER_URL = 'redis://127.0.0.1:6379/0' CELERY_ACCEPT_CONTENT = ['json'] TASK_SERIALIZER = 'json' [2022-02-14 12:02:26,910: ERROR/MainProcess] consumer: Cannot connect to amqp://guest:**@192....
Jacob Constantino's user avatar
1 vote
0 answers
148 views

I can't get celery to import to my app in django project. Here is tasks.py in apis app directory: from __future__ import absolute_import, unicode_literals from celery import shared_task @shared_task ...
Justin Benfit's user avatar
0 votes
1 answer
2k views

I have the following code. This is working fine. But I am iterating metrics in a for loop in get_host_types(). I want to create subtasks from get_host_types() function for each metric which will call ...
Technical Shil's user avatar
1 vote
0 answers
175 views

I have used celery apply_async (also tried delay) with django. The task executes only 3 out of 10 queries where I am performing an update operation on mongo db database. (I am using pymongo) Only the ...
Hitesh Jindal's user avatar
2 votes
1 answer
3k views

There are several posts regarding how to setup Scrapy within a Celery task avoiding to restart the Twister reactor to prevent the twisted.internet.error.ReactorNotRestartable error. I have tried ...
Ander's user avatar
  • 5,754
0 votes
1 answer
373 views

I'm deploying a Django app with Docker. version: '3.1' services: b2_nginx: build: ./nginx container_name: b2_nginx ports: - 1904:80 volumes: - ./app/cv_baza/static:/...
Mislav's user avatar
  • 678
1 vote
0 answers
1k views

I am using Celery in Django in order to run tasks in specific time intervals. When I first start the Docker, all the tasks run without any issue. If I stop the docker (i.e. docker-compose down) and ...
user1015777's user avatar
  • 1,021
1 vote
2 answers
3k views

I am wondering if it is possible to have my end users dynamically adjust the schedule of a periodic task. So something along these lines: # celery.py def get_schedule(): config = get_user_config()...
davjfish's user avatar
  • 355
0 votes
1 answer
2k views

In a Django app, I have a form that schedules an email to be sent out. It has four fields: name, email, body, send_date. I want to dynamically create a Celery task (email) to run another Celery task ...
user10248665's user avatar
2 votes
0 answers
189 views

I have a lot of tasks that are being generated that I would like to group in to chunks, but I think in the opposite way as Celery does. From my understanding, I can use the chunks feature to split up ...
DHamrick's user avatar
  • 8,538
0 votes
2 answers
824 views

I am working on django app, I made a service file which is called service.py and in that file i am calling a celery task i.e. # start celery task in the apps>myapp>tasks.py @app.task() def ...
Yatish Kumar prjapati's user avatar
0 votes
0 answers
361 views

Hello I want to use celery tasks in my Django project When I run the celery -A proj worker -l INFO all good it connects to the rabbitmq server But I have a problem when I run the task add.delay(1, 1) ...
Saarsa's user avatar
  • 3
1 vote
1 answer
1k views

I'm using Celery with a Redis broker to do some "heavy" processing for my Django app. Everything is running locally in Docker containers on WSL2. The tasks output a JSON which is roughly 2.5 ...
mdef's user avatar
  • 93
3 votes
2 answers
9k views

I have Django application that was using Celery version 4.4.2, which was working fine. from celery import task import logging @task(ignore_result=True) def log_user_activity(user_id): try: ...
Avi's user avatar
  • 1,615
0 votes
1 answer
517 views

I am doing inference on two strings using celery and django rest framework but I am getting error while using .delay() or apply_async(). I am not getting the predicted response #views.py @api_view(['...
harsh's user avatar
  • 595
0 votes
0 answers
244 views

I am using Django rest framework to do prediction on two strings and using celery to run inference. But I am getting error when trying to take solute and solvent from the result function into tasks.py ...
harsh's user avatar
  • 595
0 votes
0 answers
221 views

I am using Django rest framework to do prediction on two strings and using celery to run inference. But I was unable to make use of celery workers even though I have done everything perfectly. I am ...
harsh's user avatar
  • 595
4 votes
1 answer
6k views

I have a Django app deployed in Docker containers. I have 3 config environnements: dev, preprod and prod. dev is my local environnement (localhost) and preprod/prod are remote linux environnements. It ...
Mereva's user avatar
  • 400
6 votes
2 answers
5k views

I am trying to add celery + redis to my django app hosted on DO App Platform. I understand there is an issue I need to work around that is documented here: https://www.digitalocean.com/community/...
cormac's user avatar
  • 61
1 vote
1 answer
360 views

I'm trying to send email from Django. My Django settings configurations are as follows: # SMTP Settings EMAIL_BACKEND = "django.core.mail.backends.smtp.EmailBackend" EMAIL_HOST = "smtp....
Fahad Md Kamal's user avatar
2 votes
1 answer
8k views

I'm trying to run a task using celery. I need to send post requests to a remote server while the user presses the send button, So I tried using celery with Redis here with this configuration in ...
AmirReza's user avatar
  • 415
3 votes
1 answer
3k views

I have created an post api which will upload images and videos for blogs. I can handle multiple images, not a problem there. But I have to send a video as well from the frontend. I have used Filefield ...
Reactoo's user avatar
  • 1,074
0 votes
1 answer
628 views

I'm following this repo but I got this error: Error: Import error cannot import name 'ProfileResource' from 'crowdfunding.models' (C:\_\_\_\_\_\crowdfunding\models.py) which supposedly makes an ...
Prosy A.'s user avatar
  • 2,822
0 votes
1 answer
5k views

I am getting the below error after I deployed my website on heroku. Error 111 connecting to 127.0.0.1:6379. Connection refused. Request Method: POST Request URL: https://website.herokuapp.com/...
Ritankar Bhattacharjee's user avatar
1 vote
0 answers
402 views

I have setup Celery to run a periodic task every 10 seconds that sends a post request to my Django Rest API Framework. When I run the Celery worker it picks up the task correctly: [tasks] . ...
Saul Anstey's user avatar
0 votes
0 answers
630 views

This is my tree (hidding all the unnecesary stuff): src/ ├─ api/ │ ├─ app1/ │ │ ├─ tasks.py │ │ ├─ models.py │ ├─ celeryworker/ │ │ ├─ celery.py │ ├─ settings.py │ ├─ urls.py ├─ manage.py ├─ ...
Simon Ernesto Cardenas Zarate's user avatar
70 votes
3 answers
38k views

Trying to start Celery first time but issues error as below, i have installed redis and its starting fine , but still somehow django seems to have issues with it , File "<frozen importlib....
Atif Shafi's user avatar
  • 1,186
0 votes
1 answer
1k views

This is the use case I am looking for : User will register on my application It is a note making and remainder application While creating remainder users will enter the time my application wants to ...
Jay Jain's user avatar
1 vote
0 answers
297 views

I have a celery task that needs to be sequential, i.e the messages need to be evaluated one by one. For this, I have used the concurrency=1 option in the worker startup. But the issue is that the ...
Tarique's user avatar
  • 711
1 vote
1 answer
465 views

In some Django-project there are tasks: @app.task def task1(): # processing @app.task def task2(): # processing @app.task def long_task(): # very long processing settings.py: ...
Альберт Александров's user avatar
1 vote
1 answer
909 views

Im looking for and advice for long running tasks in Django. This is my use case: I have an eshop order with over 200 products (rows). When I click on "process" Django runs a function (which ...
Jakub Mana's user avatar
1 vote
4 answers
1k views

I want to create a progress bar for my project. I have a class and this class has some functions. Especially, one of them takes a long time (def download_all) and this is my main reason for wanting to ...
edche's user avatar
  • 680
0 votes
0 answers
185 views

I have django application using celery as task scheduler. In my scenario, I have to read some data from teradata using pyodbc which range average > 100000 records and need to load that data back ...
Pandimuthu Thirupathi's user avatar
0 votes
0 answers
561 views

I want to create a progress bar for my project. I have a class and this class has some functions. Especially, one of them takes a long time (def download_all) and this is my main reason for wanting to ...
edche's user avatar
  • 680
1 vote
1 answer
2k views

celery --version 5.1.2 (sun-harmonics) django --version 3.2.8 I have a celery schedule that has four tasks that run in different timezones. I am using nowfun for setting the timezones and have set ...
JessicaRyan's user avatar
1 vote
1 answer
2k views

I am trying to send emails via Django celery but the tasks are not getting received by the celery. settings.py CELERY_BROKER_URL = 'redis://127.0.0.1:6379' CELERY_RESULT_BACKEND = 'redis://127.0.0.1:...
surya raj's user avatar
  • 195
1 vote
1 answer
2k views

[2021-10-27 02:05:09,365: ERROR/MainProcess] Process 'ForkPoolWorker-5' pid:12871 exited with 'signal 9 (SIGKILL)' [2021-10-27 02:05:09,412: ERROR/MainProcess] Task handler raised error: ...
Riyas Ac's user avatar
  • 1,613
0 votes
1 answer
1k views

We have a Django app with celery to handle an asynchronous tasks. We use AWS SQS as the task broker. We ended up with a bad task to be processed (removed the task implementation without removing the ...
CoatedMoose's user avatar
  • 4,388
2 votes
0 answers
253 views

I'm running a selenium webdriver in a celery task. However, in some cases, I need to revoke/terminate the celery task. I successfully terminate the celery task using the following >>> from ...
Muhammad Zubair's user avatar

1
3 4
5
6 7
35