From fb75556fd902bbdcd558e1dc6a326e32607b1d53 Mon Sep 17 00:00:00 2001 From: Nathan Flurry Date: Mon, 24 Jun 2024 21:08:33 -0700 Subject: [PATCH] chore: increase workflow tick interval (#941) ## Changes --- lib/chirp-workflow/core/src/worker.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/chirp-workflow/core/src/worker.rs b/lib/chirp-workflow/core/src/worker.rs index 4f9710f7d..94b9dadda 100644 --- a/lib/chirp-workflow/core/src/worker.rs +++ b/lib/chirp-workflow/core/src/worker.rs @@ -5,7 +5,7 @@ use uuid::Uuid; use crate::{util, DatabaseHandle, RegistryHandle, WorkflowCtx}; -const TICK_INTERVAL: Duration = Duration::from_millis(50); +const TICK_INTERVAL: Duration = Duration::from_millis(200); /// Used to spawn a new thread that indefinitely polls the database for new workflows. Only pulls workflows /// that are registered in its registry. After pulling, the workflows are ran and their state is written to