All Products
Search
Document Center

CloudOps Orchestration Service:Debug a custom template by executing tasks one by one

Last Updated:Nov 05, 2024

When you create a template, you need to test the template. This process is similar to debugging in programming. This topic describes the UI elements for debugging, including the buttons for starting debugging, executing tasks one by one, and stopping debugging. This topic also provides an example on how to debug a custom template by executing tasks one by one.

In this example, the ACS-OOS-ExampleBulkyExecuteCommandsInEcs template is used. For more information, see the Example section of this topic.

UI elements

Important
  • When you debug a template, a temporary execution is created and automatically destroyed when debugging is stopped. If you do not stop debugging, the temporary execution is not automatically destroyed. For more information about how to manually destroy an execution, see Cancel an execution and Delete an execution.

  • The operations performed during debugging take effect on the relevant cloud resources.

  • You can use the price calculator to estimate the costs of cloud resources related to debugging.

UI element

Description

Task Debugging

The button that you can click to start debugging. After you click Task Debugging, the Task Debugging dialog box appears and a temporary execution is created.

Edit Template Parameter

The step in which template parameters are configured.

Perform Task of Single Step

The step in which a single task is executed for debugging.

Execute

The button that you can click to execute the selected task.

Use Parameters Provided by Current Execution

If the task has input parameters, the parameter settings provided by the execution are used. By default, this option is selected.

Override Parameters Provided by Current Execution

If the task has input parameters, you need to configure the parameters.

Stop Debugging

The button that you can click to stop debugging. After you click Stop Debugging, the Task Debugging dialog box is closed and the temporary execution is deleted.

Example

  1. Log on to the CloudOps Orchestration Service console. In the left-side navigation pane, choose Automated Task > Custom Template. On the Custom Template page, click Create Template.

  2. On the Create Template page, select Create Template Based on Samples and then select the ACS-OOS-ExampleBulkyExecuteCommandsInEcs template in the Edit Template Parameter step. Click Next Step.image

  3. On the Process Configuration tab, click Task Debugging. The Task Debugging dialog box appears.image

  4. Manually select instances and click Next Step.

  5. Find the first task and click the task name. In the displayed task information, select one option in the Required Parameters section.

    • If you select Use Parameters Provided by Current Execution, the parameters configured for the execution are used. Then, click Execute to the right of the task name.image

    • If you select Override Parameters Provided by Current Execution, manually configure the input parameters for the task and click Execute to the right of the task name.image

  6. Find the second task and click Execute to the right of the task name. Then, click the task name to view the execution results.image

  7. Click Stop Debugging.