increase min re-scheduling

This commit is contained in:
Ruben Fiszel
2024-05-26 05:20:11 +02:00
parent 9d2e4df920
commit 1dfe4bf9fa
+1 -1
View File
@@ -1799,7 +1799,7 @@ pub async fn pull<R: rsmq_async::RsmqConnection + Send + Clone>(
let now = min_started_at.now.unwrap();
let min_started_p_inc = (min_started_at.min_started_at.unwrap_or(now) + inc)
.max(now + Duration::try_seconds(1).unwrap_or_default());
.max(now + Duration::try_seconds(3).unwrap_or_default());
let mut estimated_next_schedule_timestamp = min_started_p_inc;
loop {