I'm following this tutorial, and adjusting the Celery-background related code to my project.
In my case I am operating in a Docker environment, and I have a secured site (i.e. https://localhost). which requires secured ssl communication.
I adjusted the code for secure connection.
I had initial connection problems, which created log error messages, but I was able to solve - see here.
Now the log file is quite, but I think that I still have connection problems. As a result, at runtime, when triggerring a task, nothing happens.
What could be the reason for no connection in the secured case?
Should I expect a message if the keys are incorrect?
Is there a way to test the connection from celery/web containers to redis container from the command line?
I was able to fix the problem by making changes to the configuration of the containers.
Specifically, I made the following changes:
In redis container:
In celery container:
- elevated the log level to debug
I first tested that I can connect from my localhost to the redis docker container over ssl. This is described here
Then, I tested that I can connect from the celery container to the redis container over ssl. The docker-compose file is:
Other related files are:
files on the redis docker container: (the settings in these files are described here)
settings on the celery docker container: