Description
Pydantic V2 enforces stricter type checks than V1. The QueryTaskResult class defines task_id: str, but somewhere in the codebase an integer is being passed for task_id when creating a QueryTaskResult instance. This causes IR extraction jobs to fail, breaking the "Link to log-viewer" feature in the web UI.
Context
Impact
IR extraction jobs fail when using Pydantic V2, preventing users from accessing the log-viewer link feature in the web UI.
Reported by
@junhaoliao
Description
Pydantic V2 enforces stricter type checks than V1. The
QueryTaskResultclass definestask_id: str, but somewhere in the codebase an integer is being passed fortask_idwhen creating aQueryTaskResultinstance. This causes IR extraction jobs to fail, breaking the "Link to log-viewer" feature in the web UI.Context
components/job-orchestration/job_orchestration/scheduler/scheduler_data.pyQueryTaskResulttask_id: strImpact
IR extraction jobs fail when using Pydantic V2, preventing users from accessing the log-viewer link feature in the web UI.
Reported by
@junhaoliao