I have problem using Celery, Redis and Django.
I am trying to use them to create a simple task.
However, an error occurs shortly after the task has been executed.
I will specify below a part of the code to better understand.I thank you for your attention.
CELERY_BROKER_URL = 'redis://:password@REDIS:6379/0'
CELERY_RESULT_BACKEND = 'redis://REDIS:6379/0'
CELERY_ACCEPT_CONTENT = ['application/json']
CELERY_RESULT_SERIALIZER = 'json'
CELERY_TASK_SERIALIZER = 'json'
CELERY_TIMEZONE = 'America/Recife'
CELERY_BEAT_SCHEDULE = {
'task-send': {
'task': 'app.tasks.task_send_email',
'schedule': crontab(hour=5, minute=44)
}
}
Console Celery
[config]
app: sistema:0x7fa254a5d6f4
transport: redis://:**@redis:6379/0
results: redis://redis:6379/0
concurrency: 1 (prefork)
task events: OFF (enable -E to monitor tasks in this worker)
[queues]
exchange=celery(direct) key=celery
[tasks]
app.tasks.task_send_email
INFO/MainProcess] Connected to redis://:**@redis:6379/0
INFO/MainProcess] mingle: searching for neighbors
INFO/MainProcess] mingle: all alone
After execute the task a error occur
RuntimeWarning: Exception raised outside body: ResponseError('NOAUTH Authentication required.',):
The task is not completed.