From 520da5568e93f0ac4230528127167877c24fbdfe Mon Sep 17 00:00:00 2001 From: Major Hayden Date: Thu, 27 Jun 2024 14:48:15 -0500 Subject: [PATCH] Don't populate db on container start Now that we pack the initial db into the container, there's no need to download image data on the first run. Signed-off-by: Major Hayden --- cid/main.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cid/main.py b/cid/main.py index 9e8b340..5be8520 100644 --- a/cid/main.py +++ b/cid/main.py @@ -5,7 +5,7 @@ from fastapi import Depends, FastAPI from fastapi.encoders import jsonable_encoder -from schedule import every, repeat, run_all, run_pending +from schedule import every, repeat, run_pending from sqlalchemy.orm import Session from cid import crud @@ -95,7 +95,6 @@ def self_update_image_data() -> None: def run_schedule() -> None: """Background task to run the scheduled tasks.""" - run_all() while True: run_pending() sleep(1)