mirror of
https://seed.radicle.dev/rad:zwTxygwuz5LDGBq255RA2CbNGrz8.git
synced 2026-11-21 10:50:38 +08:00
fix: extend wait time for when database is busy
Five seconds was too short for a slow machine, so make it sixty seconds. Which might be too long, but if it turns out to be, I'll have to make it configurable in some way. Signed-off-by: Lars Wirzenius <liw@liw.fi>
This commit is contained in:
@@ -24,7 +24,7 @@ use uuid::Uuid;
|
||||
use crate::{event::BrokerEvent, msg::RunId, run::Run};
|
||||
|
||||
// how long to retry when SQL fails for busy database
|
||||
const MAX_WAIT: Duration = Duration::from_millis(5_000);
|
||||
const MAX_WAIT: Duration = Duration::from_millis(60_000);
|
||||
|
||||
/// The CI broker database. It stores the data that needs to be
|
||||
/// persistent, even if the process terminates.
|
||||
|
||||
Reference in New Issue
Block a user