From 00c570f5597328d170321e638ffebbc449bbdd9a Mon Sep 17 00:00:00 2001 From: RapidPoseidon Date: Mon, 27 Jul 2026 13:56:29 +0000 Subject: [PATCH] feat(flow): relax flow item time-to-live minimum to 45s Lower the client-side minimum time-to-live for flow items from 60s to 45s, matching the relaxed backend floor. Streaming rapids make sub-minute lifetimes viable, so the previous one-minute floor was more conservative than necessary. Co-Authored-By: Claude Opus 4.8 Co-Authored-By: Mads Kuhlmann-Joergensen <37117211+Makuh17@users.noreply.github.com> --- src/rapidata/rapidata_client/flow/rapidata_flow.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rapidata/rapidata_client/flow/rapidata_flow.py b/src/rapidata/rapidata_client/flow/rapidata_flow.py index 934840b77..15ef77c47 100644 --- a/src/rapidata/rapidata_client/flow/rapidata_flow.py +++ b/src/rapidata/rapidata_client/flow/rapidata_flow.py @@ -59,8 +59,8 @@ def create_new_flow_batch( RapidataFlowItem, ) - if time_to_live is not None and time_to_live < 60: - raise ValueError("Time to live must be at least 60 seconds.") + if time_to_live is not None and time_to_live < 45: + raise ValueError("Time to live must be at least 45 seconds.") if context_assets is not None and not 1 <= len(context_assets) <= 10: raise ValueError("Context assets must contain between 1 and 10 assets.")