Fix linting

This commit is contained in:
yangdx
2025-03-12 16:28:55 +08:00
parent 16e06100e7
commit 73440e3a96

View File

@@ -114,6 +114,7 @@ class PipelineStatusResponse(BaseModel):
latest_message: Latest message from pipeline processing latest_message: Latest message from pipeline processing
history_messages: List of history messages history_messages: List of history messages
""" """
autoscanned: bool = False autoscanned: bool = False
busy: bool = False busy: bool = False
job_name: str = "Default Job" job_name: str = "Default Job"
@@ -748,7 +749,11 @@ def create_document_routes(
logger.error(traceback.format_exc()) logger.error(traceback.format_exc())
raise HTTPException(status_code=500, detail=str(e)) raise HTTPException(status_code=500, detail=str(e))
@router.get("/pipeline_status", dependencies=[Depends(optional_api_key)], response_model=PipelineStatusResponse) @router.get(
"/pipeline_status",
dependencies=[Depends(optional_api_key)],
response_model=PipelineStatusResponse,
)
async def get_pipeline_status() -> PipelineStatusResponse: async def get_pipeline_status() -> PipelineStatusResponse:
""" """
Get the current status of the document indexing pipeline. Get the current status of the document indexing pipeline.