I keep getting "connection failed: connection to server at "127.0.0.1", port 5432 failed: FATAL: password authentication failed for user "root" connection to server" when running my task in production. This does not happen in local development.
@db_periodic_task(crontab(minute='*/1'), queue='application_expiration')
def parcel_expiration_task():
# current date and time
current_timestamp = timezone.localtime(timezone.now())
# get all event
get_events = Event.objects.order_by('-creation_time').filter(
time_ends__lt=current_timestamp
)
if get_events.exists():
...
I keep getting "connection failed: connection to server at "127.0.0.1", port 5432 failed: FATAL: password authentication failed for user "root" connection to server" when running my task in production. This does not happen in local development.