feat: Implement data synthesis task management with database models and API endpoints (#122)

This commit is contained in:
Dallas98
2025-12-02 15:23:58 +08:00
committed by GitHub
parent 458afa2966
commit 8b164cb012
21 changed files with 1379 additions and 22 deletions

View File

@@ -24,7 +24,7 @@ logger = get_logger(__name__)
@asynccontextmanager
async def lifespan(app: FastAPI):
# @startup
logger.info("DataMate Python Backend starting...")
@@ -43,7 +43,7 @@ async def lifespan(app: FastAPI):
logger.info(f"Label Studio: {settings.label_studio_base_url}")
yield
# @shutdown
logger.info("DataMate Python Backend shutting down ...\n\n")
@@ -105,11 +105,11 @@ async def root():
if __name__ == "__main__":
import uvicorn
uvicorn.run(
"app.main:app",
host=settings.host,
port=settings.port,
reload=settings.debug,
log_level=settings.log_level.lower()
)
)