ComfyUI > Nodes > ComfyUI_RH_APICall > RH Execute

ComfyUI Node: RH Execute

Class Name

RH_ExecuteNode

Category
RunningHub
Author
shahkoorosh (Account age: 86days)
Extension
ComfyUI_RH_APICall
Latest Updated
2025-02-07
Github Stars
0.03K

How to Install ComfyUI_RH_APICall

Install this extension via the ComfyUI Manager by searching for ComfyUI_RH_APICall
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI_RH_APICall in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

RH Execute Description

Facilitates task execution via API calls in ComfyUI, automating task submissions, monitoring progress, and managing multiple tasks efficiently.

RH Execute:

The RH_ExecuteNode is a powerful component designed to facilitate the execution of tasks through API calls within the ComfyUI framework. Its primary purpose is to manage and execute tasks by interacting with external APIs, making it an essential tool for integrating external processes into your workflow. This node is particularly beneficial for users who need to automate task submissions and monitor their progress, as it handles task creation, status checking, and result retrieval seamlessly. By leveraging this node, you can efficiently manage multiple tasks, ensuring that they are executed in a timely manner while adhering to specified constraints such as timeouts and query intervals. The RH_ExecuteNode is a versatile tool that enhances the automation capabilities of ComfyUI, making it easier to integrate complex workflows and external services.

RH Execute Input Parameters:

apiConfig

The apiConfig parameter is a required input that provides the necessary configuration for API interactions. It is a structured data type that typically includes details such as the API key and base URL, which are essential for authenticating and directing API requests. This parameter is crucial as it defines the connection settings for the API, ensuring that the node can communicate effectively with the external service.

nodeInfoList

The nodeInfoList parameter is an optional array that contains information about the nodes involved in the task. By default, it is an empty list. This parameter allows you to specify additional context or data that may be required for task execution. If not provided, the node will proceed without this additional information, but including it can enhance the task's execution by providing more detailed instructions or data.

run_timeout

The run_timeout parameter is an optional integer that sets the maximum duration, in seconds, for which the node will wait for a task to complete. The default value is 600 seconds. This parameter is important for preventing indefinite waiting periods, ensuring that the node will terminate the task if it exceeds the specified time limit. Adjusting this value allows you to control how long the node should wait before considering a task as failed due to timeout.

query_interval

The query_interval parameter is an optional integer that determines the frequency, in seconds, at which the node checks the status of a running task. The default value is 10 seconds, with a minimum enforced value of 2 seconds. This parameter is critical for balancing the responsiveness of task monitoring with the load on the API, as more frequent checks can lead to increased API calls. Setting an appropriate interval helps in efficiently tracking task progress without overwhelming the API.

RH Execute Output Parameters:

images

The images output parameter provides the result of the task execution in the form of one or more images. This output is significant as it represents the visual data generated by the task, which can be used for further processing or analysis within ComfyUI. The images are typically the primary output of tasks that involve image generation or manipulation.

videos

The videos output parameter delivers the result of the task execution as one or more videos. This output is crucial for tasks that involve video processing or generation, allowing you to obtain dynamic visual content as a result. The videos can be used for various purposes, such as presentations, further editing, or analysis.

RH Execute Usage Tips:

  • Ensure that the apiConfig parameter is correctly configured with a valid API key and base URL to avoid authentication issues.
  • Adjust the run_timeout and query_interval parameters based on the expected duration and frequency of task updates to optimize performance and resource usage.
  • Use the nodeInfoList parameter to provide additional context or data for tasks that require more detailed instructions or inputs.

RH Execute Common Errors and Solutions:

HTTP request failed with status code: <status_code>

  • Explanation: This error occurs when the API request does not return a successful status code, indicating a problem with the request or the server.
  • Solution: Verify the apiConfig settings, including the API key and base URL, and ensure that the API service is operational. Check for any network issues or incorrect endpoint configurations.

Timeout: There are still running tasks after <run_timeout> seconds.

  • Explanation: This error indicates that the task did not complete within the specified run_timeout period.
  • Solution: Consider increasing the run_timeout value if the task typically takes longer to complete. Alternatively, check the task's complexity and optimize it for faster execution.

Task creation failed: <error_message>

  • Explanation: This error occurs when the task cannot be created due to an issue with the provided parameters or the API service.
  • Solution: Review the nodeInfoList and apiConfig parameters to ensure they are correctly specified. Check the API documentation for any additional requirements or constraints.

RH Execute Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI_RH_APICall
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Playground, enabling artists to harness the latest AI tools to create incredible art.