Jimeng Video Query Tasks:
JimengVideoQueryTasks is a node designed to facilitate the querying of historical task statuses and lists within the Jimeng video generation framework. This node is particularly useful for users who need to track the progress and outcomes of their video generation tasks, providing a streamlined way to access detailed information about each task. By leveraging this node, you can efficiently manage and monitor tasks, ensuring that you have up-to-date insights into their statuses, whether they are running, queued, succeeded, failed, or otherwise. This capability is essential for maintaining an organized workflow and making informed decisions based on the current state of your video generation tasks.
Jimeng Video Query Tasks Input Parameters:
client
The client parameter is an input that represents the Jimeng client instance used to interact with the video generation service. It is essential for establishing a connection to the service and executing queries related to task statuses and lists.
page_num
The page_num parameter specifies the page number of the task list to be retrieved. It is an integer value that allows you to navigate through multiple pages of tasks, with a default value of 1. This parameter is crucial for managing large sets of tasks by breaking them down into manageable pages.
page_size
The page_size parameter defines the number of tasks to be displayed per page. It is an integer value with a default of 10, allowing you to control the volume of task information retrieved in a single query. Adjusting this parameter can help optimize the amount of data processed at once.
status
The status parameter allows you to filter tasks based on their current status. It is a combo input with options such as "all", "succeeded", "failed", "running", "queued", "cancelled", and "expired", with "all" as the default. This parameter is vital for narrowing down the task list to those of particular interest.
service_tier
The service_tier parameter specifies the service level for the tasks, with options including "default" and "flex", and a default value of "default". This parameter helps determine the quality and speed of service applied to the tasks being queried.
task_ids
The task_ids parameter is a string input that allows you to specify particular task IDs to query. By default, it is an empty string, meaning no specific task IDs are targeted. This parameter is useful for retrieving information about specific tasks when their IDs are known.
model_version
The model_version parameter lets you select the version of the model used for the tasks. It is a combo input with options derived from the MODELS list, with "all" as the default. This parameter is important for filtering tasks based on the model version used during their execution.
seed
The seed parameter is an integer input that sets the seed value for the tasks, influencing the randomness of the video generation process. It has a default value of 0 and a range from 0 to VIDEO_MAX_SEED. This parameter is crucial for ensuring reproducibility in video generation tasks.
Jimeng Video Query Tasks Output Parameters:
task_list_json
The task_list_json output provides a JSON-formatted string containing the list of tasks that match the query criteria. This output is essential for users who need a structured and detailed overview of the tasks, including their statuses and other relevant information.
total_tasks
The total_tasks output is an integer that indicates the total number of tasks that match the query criteria. This output is important for understanding the scope of the task list and for planning further actions based on the number of tasks retrieved.
Jimeng Video Query Tasks Usage Tips:
- To efficiently manage large sets of tasks, adjust the
page_sizeparameter to control the number of tasks displayed per page, and use thepage_numparameter to navigate through different pages. - Utilize the
statusparameter to filter tasks based on their current state, allowing you to focus on tasks that require immediate attention or have specific outcomes.
Jimeng Video Query Tasks Common Errors and Solutions:
"Invalid client instance"
- Explanation: This error occurs when the
clientparameter does not contain a valid Jimeng client instance. - Solution: Ensure that the
clientparameter is correctly initialized with a valid Jimeng client instance before executing the node.
"Page number out of range"
- Explanation: This error indicates that the
page_numparameter is set to a value that exceeds the available pages of tasks. - Solution: Verify the total number of pages available and adjust the
page_numparameter to a valid range.
"Invalid status option"
- Explanation: This error arises when the
statusparameter is set to a value not included in the predefined options. - Solution: Check the available options for the
statusparameter and ensure that a valid option is selected.
