All Products
Search
Document Center

CloudFlow:View the execution history

Last Updated:Oct 30, 2023

This topic describes how to view the execution history by using the Serverless Workflow console or Alibaba Cloud CLI.

Background information

The execution history records the execution status of each step in detail. Based on the execution history, you can learn the information about a flow, such as steps, input, output, duration, and failure cause. In addition, Serverless workflow tracks the flow by using the status data to ensure the high availability of the system.

View the execution history by using the Serverless Workflow console

  1. Log on to the Serverless Workflow console.
  2. On the Flows page, click the name of the flow whose execution history you want to view.
  3. On the Details page, click the name of the execution that you want to view.
  4. On the Execution History tab, view the execution history.
    get-exec-history-1

View the execution history by using Alibaba Cloud CLI

You can run the following command to view the execution history:

aliyun fnf GetExecutionHistory --FlowName cli_guide_1 --ExecutionName run1

Expected output:

{
    "Events": [
        {
            "Type": "ExecutionStarted",
            "EventId": 1,
            "ScheduleEventId": 0,
            "EventDetail": "{}",
            "Time": "2019-05-13T06:23:48.767Z"
        },
        {
            "StepName": "pass1",
            "Type": "StepEntered",
            "EventId": 2,
            "ScheduleEventId": 1,
            "EventDetail": "{}",
            "Time": "2019-05-13T06:23:50.259Z"
        },
        {
            "StepName": "pass1",
            "Type": "StepStarted",
            "EventId": 3,
            "ScheduleEventId": 2,
            "EventDetail": "{}",
            "Time": "2019-05-13T06:23:51.287Z"
        },
        {
            "StepName": "pass1",
            "Type": "StepSucceeded",
            "EventId": 4,
            "ScheduleEventId": 3,
            "EventDetail": "{}",
            "Time": "2019-05-13T06:23:52.317Z"
        },
        {
            "StepName": "pass1",
            "Type": "StepExited",
            "EventId": 5,
            "ScheduleEventId": 4,
            "EventDetail": "{}",
            "Time": "2019-05-13T06:23:53.348Z"
        },
        {
            "Type": "ExecutionSucceeded",
            "EventId": 6,
            "ScheduleEventId": 5,
            "EventDetail": "{}",
            "Time": "2019-05-13T06:23:54.376Z"
        }
    ],
    "RequestId": "xxxx"
}