Skip to content

Commit

Permalink
Don't populate db on container start
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
major authored and F-X64 committed Jun 28, 2024
1 parent 7fe6f88 commit 520da55
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cid/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 520da55

Please sign in to comment.