celery Questions
4
Solved
Python 3.x, Celery 4.x...
I have a class-based task.
myproj/celery.py
from celery import Celery
# django settings stuff...
app = Celery('myproj')
app.autodiscover_tasks()
app1/tasks.py
impo...
Continuance asked 22/1, 2017 at 6:32
6
Solved
Today I have been trying to setup Celery using AWS SQS as the broker, however upon excututing the following:
test.py
from celery import Celery
access_key_id = '********************'
secret_acce...
Ahmad asked 21/11, 2017 at 23:47
2
Solved
I have a Django app where I have created a custom middleware.
It works as follows:
The middleware intercepts a token (which identifies the users) within each request, and makes a request to an...
Rosina asked 7/3, 2017 at 20:32
3
How do I schedule a task with celery that runs on 1st of every month?
Plage asked 9/12, 2010 at 11:7
41
Solved
I'm trying to run example from Celery documentation.
I run: celeryd --loglevel=INFO
/usr/local/lib/python2.7/dist-packages/celery/loaders/default.py:64: NotConfigured: No 'celeryconfig' module fo...
5
My question is a duplicate of this one, but more detailed.
The problem is that I have a BROKER_URL set in my Celery config file, but that isn't reflected in and I am loading the config: I checked,...
Andante asked 12/11, 2013 at 19:58
4
I've been running a dockerized flask application that uses Celery to run tasks.
To run the app I'm using gunicorn with eventlet and It's been working fine using alpine linux distribution.
However ...
Roesch asked 28/10, 2019 at 10:19
4
Solved
I am using Celery 3.0 and have the configuration file like below.
celeryconfig.py
BROKER_URL = 'redis://localhost:6379/0'
CELERY_RESULT_BACKEND = 'redis://localhost:6379/0'
CELERY_TASK_SERIALIZER...
Contraception asked 8/3, 2013 at 13:21
5
I have a REST API written in Django, with and endpoint that queues a celery task when posting to it. The response contains the task id which I'd like to use to test that the task is created and get...
6
Solved
I have a Django application which I want to configure it celery to run background tasks.
Packages:
celery==4.2.1
Django==2.1.3
Python==3.5
Redis-server==3.0.6
Configuration of celery in setti...
Cargile asked 21/11, 2018 at 6:51
7
I have Celery tasks that are received but will not execute. I am using Python 2.7 and Celery 4.0.2. My message broker is Amazon SQS.
This the output of celery worker:
$ celery worker -A myapp.cel...
Disgraceful asked 13/1, 2017 at 13:59
4
Solved
UPDATE: I decided to try using Django as the broker for simplicity, as I assumed I did something wrong in the Redis setup. However, after making the changes described in the docs I get the same err...
Emmaemmalee asked 16/1, 2016 at 19:8
9
Solved
I could make celery reload itself automatically when there is changes on modules in CELERY_IMPORTS in settings.py.
I tried to give mother modules to detect changes even on child modules but it did...
Mccormac asked 9/2, 2014 at 22:53
5
Solved
I've been getting the following error when running docker compose. The problem doesn't happen at all in my Mac OS dev environment (this error in occuring when trying to deploy in Ubuntu & debia...
3
Solved
I have some tasks which should return result, and some tasks that don't.
I want to force tasks which shouldn't return result not to write anything in result backend (for example None). How can I ac...
Williwaw asked 25/11, 2016 at 16:1
5
Solved
How to use Django with AWS Elastic Beanstalk that would also run tasks by celery on main node only?
Heraclea asked 15/12, 2016 at 10:19
4
I have a production setup for running celery workers for making a POST / GET request to remote service and storing result, It is handling load around 20k tasks per 15 min.
The problem is that the ...
3
Solved
I am sorry if its basics but I did not find any answers on the Internet comparing these two technologies. How should I decide when to use which as both can be used to schedule and process periodic ...
Screenplay asked 26/11, 2019 at 14:8
4
Solved
I am using celery to read data from a csv and upload it to Postgres. The celery task is working(I think), but django is throwing an error. I am getting a file,converting it to pandas, deleting 2 co...
3
I have an app using celery for async-task and i use redis for its broker and result backend and i set redis to use unix socket.
here is my url for celery and broker
brok = 'redis+socket://:ABc@/t...
4
Solved
I am using Celery to perform asynchronous background tasks, with Redis as the backend. I'm interested in the behaviour of a Celery worker in the following situation:
I am running a worker as a dae...
Salty asked 24/1, 2013 at 11:41
3
Solved
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._...
Villasenor asked 30/11, 2021 at 3:54
5
I'm trying to write some unit tests for some celery tasks in my Django app. These tasks take a model id as the argument, do some stuff, and update the model. When running a devserver and celery wor...
Vernitavernoleninsk asked 28/2, 2014 at 20:51
6
Solved
We have a server running celery workers and a Redis queue. The tasks are defined on that server.
I need to be able to call these tasks from a remote machine.
I know that it is done using send_task ...
6
Solved
When I run celery -A tasks2.celery worker -B I want to see "celery task" printed every second. Currently nothing is printed. Why isn't this working?
from app import app
from celery import Celery
f...
© 2022 - 2025 — McMap. All rights reserved.