Skip to content

Pydantic V2 strict type checking causes IR extraction job failure with integer task_id #1363

@coderabbitai

Description

@coderabbitai

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions