1
This commit is contained in:
@@ -29,7 +29,7 @@ async def lifespan(app: FastAPI):
|
|||||||
os.makedirs(settings.UPLOAD_LOCAL_PATH, exist_ok=True)
|
os.makedirs(settings.UPLOAD_LOCAL_PATH, exist_ok=True)
|
||||||
await init_database()
|
await init_database()
|
||||||
await init_redis()
|
await init_redis()
|
||||||
await _seed_data()
|
# await _seed_data()
|
||||||
|
|
||||||
# Start task queue (handles both video and image generation)
|
# Start task queue (handles both video and image generation)
|
||||||
from app.services.video_queue import task_queue
|
from app.services.video_queue import task_queue
|
||||||
@@ -120,7 +120,7 @@ async def lifespan(app: FastAPI):
|
|||||||
await close_redis()
|
await close_redis()
|
||||||
|
|
||||||
|
|
||||||
# async def _seed_data():
|
async def _seed_data():
|
||||||
"""Insert initial data on first run."""
|
"""Insert initial data on first run."""
|
||||||
from app.models import async_session
|
from app.models import async_session
|
||||||
from app.models.user import User
|
from app.models.user import User
|
||||||
|
|||||||
Reference in New Issue
Block a user