Mikubill / sd-webui-controlnet

WebUI extension for ControlNet
GNU General Public License v3.0
17.11k stars 1.97k forks source link

Celery Setup with rabbitmq and Redis #3058

Open baraa722 opened 1 month ago

baraa722 commented 1 month ago

I am using Celery with rabbitmq to utilize the queueing feature and i am mixing it with flask, following the documentation step by step, one of the options that I am trying to use is the backend option when preparing celery app, setting it up to use redis, but when i try to use job.get() but i get this exception

raise NotImplementedError(E_NO_BACKEND.strip()) NotImplementedError: No result backend is configured.

here is the setup of the celery app

celery = Celery('CeleryConfig', broker='amqp://guest:guest@localhost:5672', backend='redis://localhost:6379', include=['tasks'], worker_prefetch_multiplier=1, result_persistent=True, result_serializer='json', task_serializer='json', accept_content=['json'])