All Products
Search
Document Center

E-MapReduce:Manage workflow instances

Last Updated:Aug 14, 2023

This topic describes how to manage workflow instances.

Prerequisites

A workflow is created and run. For more information, see the Create a workflow and Run a workflow sections of the "Manage a workflow" topic.

View the information about a workflow instance

  1. Go to the Project tab.

    1. Log on to the E-MapReduce (EMR) console.

    2. In the left-side navigation pane, choose EMR Studio > Workflow.

    3. Click the Project tab.

    4. On the Project tab, click the name of the project that you want to manage.

  2. On the details page of the project, choose Workflow > Workflow Instance in the left-side navigation pane.

    On the Workflow Instance page, find a workflow instance whose information you want to view and click the name of the workflow instance.

View the run logs of a workflow instance

  1. On the Workflow Instance page, find a workflow instance whose run logs you want to view and click the name of the workflow instance.

  2. On the DAG page of the workflow instance, double-click a node of the workflow instance.

  3. In the Current node settings dialog box, click View log.

    In the dialog box that appears, you can view the run logs of the workflow instance. You can also click Download log to download the logs to your computer.

View the historical tasks that were run in a workflow instance

  1. On the Workflow Instance page, find a workflow instance that you want to manage and click the name of the workflow instance.

  2. On the DAG page of the workflow instance, double-click a node of the workflow instance.

  3. In the dialog box that appears, click View history.

    The Task Instance page appears. The tasks that were run in this workflow instance are displayed.

Operations on workflow instances

Operation

Description

image..png (Edit)

You can edit only workflow instances that are run, fail, or are paused.

image.png (Rerun)

You can rerun a workflow instance that is terminated.

image.png (Recovery Failed)

You can retry to run a failed workflow instance from the failed node of the workflow instance.

image.png (Stop)

To stop a running workflow instance, the system stops the worker process and performs the kill -9 operation.

image.png (Pause)

If you pause a running workflow instance, the state of the workflow instance changes to Ready to pause. The system waits for the running workflow to complete and pauses the next workflow to be run.

image..png (Delete)

You can delete a workflow instance and the task instances that are run in the workflow instance.

image.png (Gantt)

The vertical axis of the Gantt chart indicates the topological sequence of task instances that are run on the current workflow instance, and the horizontal axis indicates the time when the task instances are run.