From 0dea487d33cf1a5f66dedfc0fb2a215c562f625b Mon Sep 17 00:00:00 2001 From: Bulat Kurbanov Date: Tue, 3 May 2022 14:11:56 +0300 Subject: [PATCH] Add raise_exceptions to remove_temp_files --- app/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/main.py b/app/main.py index 649214f..ebe7343 100644 --- a/app/main.py +++ b/app/main.py @@ -95,8 +95,8 @@ app.include_router(router) @app.on_event("startup") -@repeat_every(seconds=60 * 60) -async def remote_temp_files(): +@repeat_every(seconds=60, raise_exceptions=True) +async def remove_temp_files(): def _foo(): current_time = time.time()