Currently using whenever gem to schedule rake tasks which remove expired backlisted tokens every day. This does not appear to be working in production or within the docker container
in log/cron.log, I see following error:
rake aborted!
ActiveRecord::ConnectionNotEstablished: could not translate host name "db" to address: nodename nor servname provided, or not known
Caused by:
PG::ConnectionBad: could not translate host name "db" to address: nodename nor servname provided, or not known
Possible avenues to consider:
For some reason ActiveRecord is not able to access the postgres db service that is created by Docker. Consider updating configurations so that the rake tasks are able to connect
Create a separate service using SideKiq to manage cron tasks
Currently using whenever gem to schedule rake tasks which remove expired backlisted tokens every day. This does not appear to be working in production or within the docker container
in log/cron.log, I see following error:
Possible avenues to consider: