Fix PostgreSQL health check - remove database-specific check
All checks were successful
BotServer CI / build (push) Successful in 12m18s
All checks were successful
BotServer CI / build (push) Successful in 12m18s
- Removed -d 'postgres' parameter from pg_isready health checks - Health check now only verifies server connection on port 5432 - Fixes false positive failures when PostgreSQL is running but specific database has issues - PostgreSQL logs showed 'database system is ready' but health check was failing
This commit is contained in:
parent
de3e5c4fec
commit
07ff7a6297
1 changed files with 2 additions and 2 deletions
|
|
@ -460,7 +460,7 @@ impl BootstrapManager {
|
|||
tokio::time::sleep(tokio::time::Duration::from_secs(1)).await;
|
||||
let status = SafeCommand::new("pg_isready")
|
||||
.and_then(|c| {
|
||||
c.args(&["-h", "localhost", "-p", "5432", "-d", "postgres"])
|
||||
c.args(&["-h", "localhost", "-p", "5432"])
|
||||
})
|
||||
.ok()
|
||||
.and_then(|cmd| cmd.execute().ok())
|
||||
|
|
@ -506,7 +506,7 @@ impl BootstrapManager {
|
|||
tokio::time::sleep(tokio::time::Duration::from_secs(1)).await;
|
||||
let status = SafeCommand::new("pg_isready")
|
||||
.and_then(|c| {
|
||||
c.args(&["-h", "localhost", "-p", "5432", "-d", "postgres"])
|
||||
c.args(&["-h", "localhost", "-p", "5432"])
|
||||
})
|
||||
.ok()
|
||||
.and_then(|cmd| cmd.execute().ok())
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue