Manager: increase database busy timeout from 5 to 20 seconds
When under heavy load, queries can take longer.
This commit is contained in:
parent
479f35b658
commit
e08bdbdf16
@ -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
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user