Fantasy-Fit / fantasy-fit-web

Creative Commons Zero v1.0 Universal
3 stars 2 forks source link

Background tasks to clean up expired tokens not working #149

Open chris-t-li opened 1 year ago

chris-t-li commented 1 year ago

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: