Skip to main content
This article explains how to query DocFlow task processing status, failure reasons, and duration information. Task status helps you understand file processing progress and results.
DocFlow uses asynchronous processing mode. After file upload, files enter the processing queue. You can query task status through multiple methods to understand processing progress, failure reasons, and task duration information.

Task Status Description

Task status in DocFlow is represented by the recognition_status field. The specific statuses are as follows:

Query Task Status

Query by Batch Number

Use batch_number to query task status for the entire batch:

Query by File ID

Use file_id to query task status for a specific file:

Query by Task ID

Use task_id to query status for a specific task:

Query Task Duration

After task processing is completed, you can view task duration through the duration_ms field (unit: milliseconds):

Failure Reason Analysis

When task status is 2 (Recognition Failed), you can view specific failure reasons through the failure_causes field:

Status Filter Query

You can filter tasks by specific status using the recognition_status parameter:

Response Example

Example response for querying task status: