This topic describes how to modify a time-based schedule in the Serverless Workflow
console or by using Alibaba Cloud CLI.
Modify a time-based schedule in the Serverless Workflow console
- Log on to the Serverless Workflow console.
- In the left-side navigation pane, click Flows.
- On the Flows page, click the name of the flow.
- Click the Schedule tab.
- Click the name of the target time-based schedule.
- In the Update Schedule dialog box, set related parameters and click OK.
Modify a time-based schedule by using Alibaba Cloud CLI
Before you use the Alibaba Cloud CLI, you must install and configure it. For more
information, see Installation Guide and Configure Alibaba Cloud CLI.
- (Optional) Run the following command to view the request parameters of the API:
$ aliyun fnf UpdateSchedule help
Alibaba Cloud Command Line Interface Version 3.0.45
Product: fnf (FunctionFlow)
Parameters:
--FlowName String Required
--ScheduleName String Required
--CronExpression String Optional
--Description String Optional
--Enable Boolean Optional
--Payload String Optional
--RequestId String Optional
- Run the following command to modify a time-based schedule:
$ aliyun fnf UpdateSchedule --FlowName test --ScheduleName schedule-test --Description "updated description" --Enable false
{
"CreatedTime": "2020-05-22T09:22:03Z",
"CronExpression": "@every 1m",
"Description": "updated description",
"Enable": false,
"LastModifiedTime": "2020-05-22T09:28:27Z",
"Payload": "{\"key\":\"value\"}",
"RequestId": "77c017cf-f1a1-bd34-3894-23f0f5d26389",
"ScheduleId": "978be20f-cceb-4677-935c-c2fe6fb4c571",
"ScheduleName": "schedule-test"
}