From 20920935704b274d5b147dedf97fa3d82c5f389b Mon Sep 17 00:00:00 2001 From: Venkat Date: Sat, 16 Nov 2024 04:52:49 +0000 Subject: [PATCH] refactor: Remove direct call to 'retry_failed_deliveries' from lifespan function --- app/main.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/app/main.py b/app/main.py index 942e859..7b29827 100644 --- a/app/main.py +++ b/app/main.py @@ -115,10 +115,6 @@ async def lifespan(app: FastAPI): NUM_OF_DAYS_TO_REPROCESS_WEBHOOKS ) logger.info("Scheduled 'retry_failed_deliveries' job to run daily at midnight.") - hooks.retry_failed_deliveries( - GITHUB_APP_ID, - GITHUB_APP_PRIVATE_KEY, - NUM_OF_DAYS_TO_REPROCESS_WEBHOOKS) # Start background task for running scheduled tasks background_tasks = BackgroundTasks() background_tasks.add_task(run_scheduled_tasks)