Radish alpha
r
Radicle CI broker
Radicle
Git (anonymous pull)
Log in to clone via SSH
fix: extend wait time for when database is busy
Lars Wirzenius committed 1 year ago
commit 3f755facf3fed28465713b3ed5569d9e7c1f4643
parent 294a04f951f0405944d21f5e486515df94ad45cd
1 file changed +1 -1
modified src/db.rs
@@ -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.