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.
-
Go to the Flow page. In the list of flows, click the Flow Name of the target flow.
-
Click the Schedule tab.
The Schedule management page lists your schedules. You can find the Create Schedule button at the top of the page. The list shows the Schedule Name, Status (use the switch to enable or disable), and available Actions such as Delete.
View time-based schedules by using Alibaba Cloud CLI
To create a time-based schedule using Alibaba Cloud CLI, you must first install and configure 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 helpExpected 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-testExpected 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 helpExpected 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 testExpected 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" } ] }
-