WaveSpeedAI Task Status [WIP]:
The WaveSpeedAI Task Status node is designed to monitor and report the status of tasks processed by the WaveSpeed AI platform. This node is essential for users who need to track the progress and results of their AI tasks, ensuring they can efficiently manage and utilize the outputs generated by the platform. By providing real-time updates on task status, this node helps you stay informed about whether a task is still processing, completed, or if it encountered any issues. This functionality is particularly beneficial for AI artists who rely on timely and accurate task completion to integrate AI-generated content into their creative workflows.
WaveSpeedAI Task Status [WIP] Input Parameters:
client
The client parameter is a required input that specifies the WaveSpeed AI API client. This client is used to authenticate and communicate with the WaveSpeed AI platform, ensuring that the task status can be accurately retrieved. It is crucial for establishing a connection to the API and must be configured with the appropriate API key.
task_id
The task_id parameter is a required input that identifies the specific task whose status you want to check. It is a string value that acts as a unique identifier for the task within the WaveSpeed AI system. Providing the correct task ID is essential for retrieving the accurate status and results of the task.
max_wait_time
The max_wait_time parameter is an optional input that defines the maximum duration, in seconds, that the node will wait for a task to complete. The default value is 300 seconds, with a minimum of 30 seconds and a maximum of 1800 seconds. This parameter is useful for setting a time limit on how long you are willing to wait for a task to finish, helping to manage expectations and system resources.
poll_interval
The poll_interval parameter is an optional input that specifies the frequency, in seconds, at which the node will check the task status. The default value is 5 seconds, with a minimum of 1 second and a maximum of 30 seconds. This parameter allows you to control how often the node queries the task status, balancing between timely updates and minimizing API calls.
wait_for_completion
The wait_for_completion parameter is an optional boolean input that determines whether the node should wait for the task to complete before returning results. The default value is True, meaning the node will wait for task completion. Setting this parameter to False allows you to check the current status without waiting for the task to finish, which can be useful for monitoring long-running tasks.
WaveSpeedAI Task Status [WIP] Output Parameters:
task_id
The task_id output parameter returns the unique identifier of the task whose status was checked. This allows you to confirm which task the status information pertains to, ensuring clarity and traceability in your workflow.
video_url
The video_url output parameter provides the URL of any video content generated by the task, if applicable. This URL can be used to access and view the video output directly, facilitating easy integration into your projects.
image
The image output parameter returns the image content generated by the task, if available. This output is crucial for AI artists who rely on visual content, allowing them to quickly access and utilize the generated images.
audio_url
The audio_url output parameter provides the URL of any audio content produced by the task. This URL enables you to listen to and download the audio output, supporting tasks that involve sound generation or processing.
text
The text output parameter contains any textual content generated by the task. This output is important for tasks that involve text generation or analysis, providing you with the necessary data for further use or evaluation.
firstImageUrl
The firstImageUrl output parameter returns the URL of the first image generated by the task, if multiple images are produced. This allows you to quickly access a preview or representative image from the task's output.
imageUrls
The imageUrls output parameter is a list of URLs for all images generated by the task. This comprehensive list enables you to access and download all visual outputs, ensuring you have complete access to the task's results.
WaveSpeedAI Task Status [WIP] Usage Tips:
- Ensure that the
task_idis correctly specified to avoid errors in retrieving task status. - Adjust the
poll_intervalto balance between timely updates and minimizing API calls, especially for tasks expected to take longer durations. - Use the
wait_for_completionparameter to decide whether you need immediate status updates or can wait for task completion, depending on your workflow needs.
WaveSpeedAI Task Status [WIP] Common Errors and Solutions:
No response from API
- Explanation: This error occurs when the node fails to receive a response from the WaveSpeed AI API, possibly due to network issues or incorrect API client configuration.
- Solution: Verify that your API client is correctly configured with a valid API key and check your network connection. Retry the operation after ensuring these settings are correct.
Task failed: <error_message>
- Explanation: This error indicates that the task encountered an issue and could not be completed successfully. The
<error_message>provides specific details about the failure. - Solution: Review the error message for insights into the failure. Common issues may include invalid task parameters or resource limitations. Adjust the task settings and try resubmitting.
Unknown task status: <status>
- Explanation: This error suggests that the task status returned by the API is not recognized by the node, possibly due to an unexpected response format.
- Solution: Ensure that the task ID is correct and that the API client is up-to-date. If the issue persists, contact WaveSpeed AI support for assistance.
