From 7a8d4a1f40b93b804f5034da00f596bbd9ca191d Mon Sep 17 00:00:00 2001 From: Lucas Oliveira Date: Tue, 25 Nov 2025 18:01:22 -0300 Subject: [PATCH] Do periodic backup only if onboarding is done --- src/main.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/main.py b/src/main.py index 344e335c..3366c568 100644 --- a/src/main.py +++ b/src/main.py @@ -1161,6 +1161,13 @@ async def create_app(): while True: try: await asyncio.sleep(5 * 60) # Wait 5 minutes + + # Check if onboarding has been completed + config = get_openrag_config() + if not config.edited: + logger.debug("Onboarding not completed yet, skipping periodic backup") + continue + flows_service = services.get("flows_service") if flows_service: logger.info("Running periodic flow backup")