All Products
Search
Document Center

CloudFlow:View execution history

Last Updated:Jun 26, 2024

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

Background information

Execution history records the execution status of each step in detail. Based on execution history, you can learn the information about a workflow, such as steps, input, output, duration, and failure cause of an execution. In addition, Serverless Workflow uses the status data to track workflow executions and ensure high availability of the system.

The CloudFlow console

  1. Log on to the CloudFlow console.

  2. On the Flows page, click the name of the workflow that you want to manage.

  3. On the Executions tab of the Details page of the workflow, 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

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": [
    {
      "StepName": "",
      "Type": "ExecutionStarted",
      "EventId": 1,
      "ScheduleEventId": 0,
      "EventDetail": "{\"input\":{}}",
      "Time": "2024-06-24T02:58:42.043Z"
    },
    {
      "StepName": "pass1",
      "Type": "StepEntered",
      "EventId": 2,
      "ScheduleEventId": 1,
      "EventDetail": "{\"input\":{},\"local\":{}}",
      "Time": "2024-06-24T02:58:42.077Z"
    },
    {
      "StepName": "pass1",
      "Type": "StepStarted",
      "EventId": 3,
      "ScheduleEventId": 2,
      "EventDetail": "{\"input\":{}}",
      "Time": "2024-06-24T02:58:42.091Z"
    },
    {
      "StepName": "pass1",
      "Type": "StepSucceeded",
      "EventId": 4,
      "ScheduleEventId": 3,
      "EventDetail": "{\"output\":{}}",
      "Time": "2024-06-24T02:58:42.109Z"
    },
    {
      "StepName": "pass1",
      "Type": "StepExited",
      "EventId": 5,
      "ScheduleEventId": 4,
      "EventDetail": "{\"local\":{}}",
      "Time": "2024-06-24T02:58:42.127Z"
    },
    {
      "StepName": "pass2",
      "Type": "StepEntered",
      "EventId": 6,
      "ScheduleEventId": 5,
      "EventDetail": "{\"input\":{},\"local\":{}}",
      "Time": "2024-06-24T02:58:42.144Z"
    },
    {
      "StepName": "pass2",
      "Type": "StepStarted",
      "EventId": 7,
      "ScheduleEventId": 6,
      "EventDetail": "{\"input\":{}}",
      "Time": "2024-06-24T02:58:42.156Z"
    },
    {
      "StepName": "pass2",
      "Type": "StepSucceeded",
      "EventId": 8,
      "ScheduleEventId": 7,
      "EventDetail": "{\"output\":{}}",
      "Time": "2024-06-24T02:58:42.169Z"
    },
    {
      "StepName": "pass2",
      "Type": "StepExited",
      "EventId": 9,
      "ScheduleEventId": 8,
      "EventDetail": "{\"local\":{}}",
      "Time": "2024-06-24T02:58:42.181Z"
    },
    {
      "StepName": "",
      "Type": "ExecutionSucceeded",
      "EventId": 10,
      "ScheduleEventId": 9,
      "EventDetail": "{\"output\":{}}",
      "Time": "2024-06-24T02:58:42.194Z"
    }
  ],
  "RequestId": "98802e07-44a2-221a-fbc2-ec167a871259"
}