查询定时调度

本文介绍如何通过控制台或命令行工具查看单个定时调度或定时调度列表。

使用控制台查看定时调度

  1. 在左侧导航栏,单击流程
  2. 在流程列表中单击目标流程的流程名称。
    workflow-name
  3. 单击定时调度页签。

    您可以查看定时调度列表。trigger-list

使用命令行工具查看定时调度

在使用命令行工具创建定时调度前,您需要安装和配置阿里云命令行工具CLI。详细信息,请参见什么是阿里云CLI

  • 查看单个定时调度。

    1. (可选)执行以下命令查看该API的请求参数。

      aliyun fnf DescribeSchedule help

      预期输出:

      Alibaba Cloud Command Line Interface Version 3.0.45
      
      Product: fnf (FunctionFlow)
      Link:    https://xxxxxxxx.html
      
      Parameters:
        --FlowName     String  Required
        --ScheduleName String  Required
        --RequestId    String  Optional
    2. 执行以下命令查看单个定时调度。

      aliyun fnf DescribeSchedule --FlowName test --ScheduleName schedule-test

      预期输出:

      {
              "CreatedTime": "2024-06-26T03:36:57Z",
              "CronExpression": "@every 1m",
              "Description": "updated description",
              "Enable": false,
              "LastModifiedTime": "2024-06-26T06:00:14Z",
              "Payload": "{\"key\":\"value\"}",
              "RequestId": "adb0fcdf-b10c-a554-8462-d23ca781fbd2",
              "ScheduleId": "b888a48f-229d-4b35-adc6-5c63a37cf3b1",
              "ScheduleName": "schedule-test"
      }
  • 查看定时调度列表。

    1. 可选:执行以下命令查看该API的请求参数。

      aliyun fnf ListSchedules help

      预期输出:

      Alibaba Cloud Command Line Interface Version 3.0.45
      
      Product: fnf (FunctionFlow)
      Link:    https://xxxxxx.html
      
      Parameters:
        --FlowName  String  Required
        --Limit     Integer Optional
        --NextToken String  Optional
        --RequestId String  Optional
    2. 执行以下命令查看定时调度列表。

      aliyun fnf ListSchedules --FlowName test

      预期输出:

      {
              "RequestId": "d228d843-eb10-55b4-706e-f250fd313928",
              "Schedules": [
                      {
                              "CreatedTime": "2024-06-26T03:25:06Z",
                              "CronExpression": "0 * * * * *",
                              "Description": "",
                              "Enable": true,
                              "LastModifiedTime": "2024-06-26T03:25:06Z",
                              "Payload": "",
                              "ScheduleId": "b95701b4-77b9-42a4-b84d-988683373ef8",
                              "ScheduleName": "asd"
                      },
                      {
                              "CreatedTime": "2024-06-26T03:29:04Z",
                              "CronExpression": "0 * * * * *",
                              "Description": "",
                              "Enable": true,
                              "LastModifiedTime": "2024-06-26T03:29:04Z",
                              "Payload": "",
                              "ScheduleId": "fc6c4d48-7511-4c87-9eb5-6ce05f55a44a",
                              "ScheduleName": "demo"
                      },
                      {
                              "CreatedTime": "2024-06-26T03:36:57Z",
                              "CronExpression": "@every 1m",
                              "Description": "updated description",
                              "Enable": false,
                              "LastModifiedTime": "2024-06-26T06:00:14Z",
                              "Payload": "{\"key\":\"value\"}",
                              "ScheduleId": "b888a48f-229d-4b35-adc6-5c63a37cf3b1",
                              "ScheduleName": "schedule-test"
                      }
              ]
      }