Manager: increase database busy timeout from 5 to 20 seconds

When under heavy load, queries can take longer.
This commit is contained in:
Sybren A. Stüvel 2024-10-10 15:08:48 +02:00
parent 479f35b658
commit e08bdbdf16

View File

@ -54,7 +54,7 @@ func OpenDB(ctx context.Context, dsn string) (*DB, error) {
}
}()
if err := db.setBusyTimeout(ctx, 5*time.Second); err != nil {
if err := db.setBusyTimeout(ctx, 20*time.Second); err != nil {
return nil, err
}