All Questions
3,919
questions
0
votes
1
answer
16
views
Importing rembg in Celery Task breaks workers
I'm trying to use the rembg library in a Celery worker (Django), but once I import the library, the worker is exited prematurely:
objc[47160]: +[NSCharacterSet initialize] may have been in progress in ...
0
votes
0
answers
29
views
Why is Celery Beat scheduler still running after it expires in Django Celery?
PeriodicTask.objects.create(
interval=interval,
crontab=crontab,
clocked=clocked,
name=data["name"],
task=data["task"], # dropdown
args=json.dumps(json....
0
votes
1
answer
24
views
How to run on_success in Celery ONLY on the last worker process in a group?
I have been scratching my head about this for days now. I have a a background running task, which takes around 1 hour. I am processing 5000 images. I create a group of celery tasks and each task ...
0
votes
0
answers
19
views
Django - Cannot make a celery worker and test transactions on test file without "You can't execute queries until the end of the 'atomic' block." error
Soo, here's the deal, Im creating a test in order to check if an improvement a made for performance is working or not, the improvements consists in making some signals logic an async task instead of ...
0
votes
0
answers
34
views
How can I configure Django to search for the Redis backend on the server instead of localhost?
I am working on updating an old Django 2.2 app, and am running into an issue with the connections between Celery, Django, Docker, and Redis. I am using Docker Compose to build the app, and using ...
0
votes
0
answers
39
views
Inspecting celery tasks in Django
Is importing Celery app and calling control.inspect() the best way for inspecting active tasks? Also, I'm using RabbitMQ as my broker.
My current way of doing it:
from core.celery import app
# django ...
0
votes
0
answers
68
views
Celery Worker Fails with AttributeError: 'NoneType' object has no attribute 'Redis' in Django Project
I'm working on a Django project where I need to send periodic emails using Celery. My environment is set up on Ubuntu, and I have Redis installed both on my system and within my virtual environment.
...
0
votes
0
answers
59
views
celery cannot connect to redis in docker:kombu.exceptions.OperationalError: Error -3 connecting to redis:6379. Lookup timed out
I'm building a Websocket service in Django, and I chose celery to push messages。But when I run celery using eventlet on the online server, the following error occurred:
Traceback (most recent call ...
1
vote
0
answers
37
views
Why is my Django app unable to find my URL pattern?
My Django project is run in Docker and I use Celery to handle queuing. When a user submits an audio file the system starts an asynchronous task(that transcribes the audio), continuously checks its ...
0
votes
1
answer
27
views
Find periodic task's next execution time in Celery Beat
I am creating PeriodicTasks for opening user an access to the next lesson using this code:
task = PeriodicTask.objects.create(
interval=enrolment.course.interval,
name=f"...
1
vote
0
answers
26
views
raised unexpected: TypeError('send_verification() takes 1 positional argument but 3 were given') in celery
class CreateAccountView(APIView):
permission_classes = []
def post(self, request):
print(request.data)
email = request.data.get('email')
if User.objects.filter(email=...
0
votes
0
answers
24
views
Can Celery Be Used for Background Tasks Without Redis in Production?
I have an API that needs to upload large files to S3, with file sizes close to 10GB. I want to handle this as a background task and am considering using Celery. However, the client won't accept the ...
0
votes
1
answer
42
views
Django and multithreading
I have Django view:
def func():
...
instance = ...create()
func2(instance)
instance.attr = attr
etc...
So func() creates an instance, calls func2() and keeps on working.
def func2(...
2
votes
1
answer
136
views
problem in a django app to use rabbitmqp as broker ansd celery for running simple task
I am trying to learn how to set up a django app for using celery. I am running rabbitmq on docker desktop on a Windows machine with this command:
docker run -it --rm --name rabbitmq -p 5672:5672 -p ...
0
votes
0
answers
26
views
How to handle large task_kwargs in Celery to avoid ellipsis in TaskResult
I am using Celery for asynchronous task processing in my Django application. Some of my tasks involve handling large amounts of data passed as task_kwargs. However, I have noticed that when the ...