Open terry-sydaus opened 1 month ago
Update:
I had to change the configuration of my prod.py file as it pertained to the redis configuration variables, as follows:
# base broker config
REDIS_HOST = 'localhost'
REDIS_BROKER_URL = 'redis://localhost:6379'
REDIS_RESULT_BACKEND = 'redis://localhost:6379'
Referencing "redis" in my app prevented the plsworker and plsbeat applications from being able to interact with the redis instance. There are now no more errors as described above and all is good. Even received an OK for the ping in the redis console that I have accessed by the admin web interface.
Just need to check now that the task scheduler works for some test tasks before I attempt to port my database from the old "scheduler" version of the app that I forked originally from your repository.
Got the scheduler up and running with a new task that I added, which required manual modification to the underlying postgresql tables, as the scheduler-reset command failed (#10), so I am very pleased about getting the celery/redis/flask stuff all playing nicely with docker on my host, as it means I no longer need to be worried about the schedule package/library being deprecated.
Thank you raskitoma.
Hi,
Hope you are well!
Back again after a while and am now interested in using your latest fork and migrating over my database from the fork that I used that did not have celery/redis functionality.
In order to get the docker containers up and running without any major plsworker / plsbeat errors regarding not being able to connect to the postgres database, I had to add
network_mode: "host"
to all container configuration sections, except for the redis container, of the docker-compose.yml file.When I do this the docker containers persist and don't constantly restart as they do when I do not include the
network_mode: "host"
. However, I still am seeing the following error occurring every 32 seconds.Are these errors "normal"?
If no, can you please offer some clues as to why they are occurring?
My docker-compose.yml file is shown below for completeness: