This topic describes how to view the list of time-based schedules or details of individual time-based schedules by using the Serverless Workflow console or Alibaba Cloud CLI.
View time-based schedules by using the Serverless Workflow console
Log on to the Serverless Workflow console.
On the Flows page, find the workflow for which you want to create a time-based schedule and click the name of the workflow in the Name column.
Click the Schedule tab.
A list of time-based schedules appear.
View time-based schedules by using Alibaba Cloud CLI
You must install and configure Alibaba Cloud CLI Before you use it. For more information, see What is Alibaba Cloud CLI?
View the details about a time-based schedule.
(Optional) Run the following command to view the request parameters of the DescribeSchedule operation:
aliyun fnf DescribeSchedule help
Expected output:
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
Run the following command to view the details about a time-based schedule:
aliyun fnf DescribeSchedule --FlowName test --ScheduleName schedule-test
Expected output:
{ "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" }
View the list of time-based schedules.
(Optional) Run the following command to view the request parameters of the DescribeSchedule operation:
aliyun fnf ListSchedules help
Expected output:
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
Run the following command to view the list of the time-based schedules:
aliyun fnf ListSchedules --FlowName test
Expected output:
{ "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" } ] }