Do periodic backup only if onboarding is done
This commit is contained in:
parent
7fca625a4c
commit
7a8d4a1f40
1 changed files with 7 additions and 0 deletions
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue