You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Auto merge of #2144 - jtgeibel:prod/fix-db-dump-fallback, r=smarnach
Allow database dumps to be run against the read-only replica
Edit: The description has been updated, with the original message included below.
This PR updates the database dump script so that it can be run against the read-only replica database.
I've tested locally, but we can manually schedule a database dump against the read-only replica and then update the existing daily scheduled task.
## Original PR Description
In production, the scheduler was configured to run:
```
./target/release/enqueue-job dump_db $READ_ONLY_REPLICA
```
instead of:
```
./target/release/enqueue-job dump_db $READ_ONLY_REPLICA_URL
```
Because of the typo in the variable name, the dump_db job has been
running against the primary database. This patch modifies the fallback
to ensure the primary database is only used if explicitly provided.
0 commit comments