Python
Before using a Python node, ensure that the host connected to the node has an environment for executing Python scripts.
Functions
The Python node is used to execute Python statements.
For details about how to use the Python node, see Developing a Python Script.
Python nodes support script parameters and job parameters.
Parameters
Table 1 and Table 2 describe the parameters of the Python node.
Parameter |
Mandatory |
Description |
---|---|---|
Python Statement or Script |
Yes |
You can select Python statement or Python script.
|
Host Connection |
Yes |
Select the host where the Python statement is to be executed. Ensure that the host has an environment for executing Python scripts.
NOTICE:
|
Script Parameters |
No |
Parameter transferred to the script when the Python statement is executed. Parameters are separated by spaces. For example: a b c. The parameter must be referenced by the Python statement. Otherwise, the parameter is invalid. |
Interactive Input |
No |
Interactive information (passwords, for example) provided during Python statement execution. Interactive parameters are separated by spaces. The Python statement reads parameter values in sequence according to the interaction situation. |
Node Name |
Yes |
Name of the node. The value must consist of 1 to 128 characters and contain only letters, digits, and the following special characters: _-/<>. By default, the node name is the same as that of the selected script. If you want the node name to be different from the script name, disable this function by referring to Disabling Auto Node Name Change. |
Parameter |
Mandatory |
Description |
---|---|---|
Node Status Polling Interval (s) |
Yes |
How often the system check completeness of the node. The value ranges from 1 to 60 seconds. |
Max. Node Execution Duration |
Yes |
Execution timeout interval for the node. If retry is configured and the execution is not complete within the timeout interval, the node will be executed again. |
Retry upon Failure |
Yes |
Whether to re-execute a node if it fails to be executed. Possible values:
|
Policy for Handling Subsequent Nodes If the Current Node Fails |
Yes |
Operation that will be performed if the node fails to be executed. Possible values:
|
Enable Dry Run |
No |
If you select this option, the node will not be executed, and a success message will be returned. |
Task Groups |
No |
Select a task group. If you select a task group, you can control the maximum number of concurrent nodes in the task group in a fine-grained manner in scenarios where a job contains multiple nodes, a data patching task is ongoing, or a job is rerunning. |
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot