Create Schedule
Application Service > Cloud Scheduler > Console User Guide > Create Schedule
A schedule consists of basic information, target info, and additional settings.
- Basic information: Select the type, cycle, and start/end dates for the schedule to execute.
- Target info: Enter the API information and HTTP methods, headers, and parameters called by the schedule.
- Additional settings: Set whether to enable/disable the schedule and the retry policy (number of times, interval).
This document explains the steps to create a schedule in detail.
Important
Date data is based on UTC+09:00.
Create Schedule
To create a schedule, you must first enable the Cloud Scheduler service. See Guide to Enabling Project Services to enable the Cloud Scheduler service.
- In the NHN Cloud console, click Application Service > Cloud Scheduler.
-
Click + Create Schedule.
-
Enter basic information settings, then click Next.
-
Set the target for the schedule, then click Next.
- URL: Enter the URL to call.
- HTTP Method: Click the drop-down list to select an HTTP method.
- HTTP headers: Click + Add to enter HTTP headers. You can add up to 20 HTTP headers, and the total size of all headers you add can be up to 8 KB combined.
- Parameters: Enter the body of the request. The Parameters field appears when you select the HTTP method as POST, PUT, or PATCH. The maximum parameter size you can enter is 256 KB.
-
After you complete the additional settings, click Next.
- Activate Schedule: Select whether to activate the schedule.
- Retry policy: You can set to retry a schedule run when it fails. When you select set, the Retry interval and Maximum number of retries fields are displayed.
- If the API call fails, retry the schedule according to the retry policy you set.
- The API success criteria are as follows
- NHN Cloud service: If the HTTP Response Status Code is
200
and the value of $.header.isSuccessful
is true
- External service: HTTP Response Status Code is
2xx
- Retry Interval: Enter the interval to retry failed schedules. You can set a minimum of 1 minute and a maximum of 60 minutes.
- Maximum Number of Retries: Enter the maximum number of retries. You can set a maximum of 5 retries.
-
In the Final Review and Save step, confirm the information you set up earlier and click Create Schedule.
Important
- Cron expressions are built with five fields, which are in the order "Minute Hour Day Month Day of Week".
- For smooth schedule execution, set the start date at least 5 minutes ahead of the current time.
- It can take up to 30 seconds for the schedule you create to be reflected, so changes to the schedule contents, including activation/deactivation, may fail during that time.
How Rate Schedules Work
Rate schedules run schedules based on the time intervals you set.
This section explains how Rate schedules work.
- Intial Start Date: The date the rate schedule first starts is the started on time you set.
- Schedule Execution Time: Rate schedules run at the Rate interval you set based on the started on time. This applies equally to activation after deactivation.
- When Rate changes: When the rate changes, the schedule runs at the changed rate interval. However, it will run at the changed rate interval based on the started on time, regardless of the last execution time.
Schedule Execution Examples
When a schedule runs depends on the start and end dates you set, and what type of schedule you entered.
To help you understand, we'll show you an example of how a Cron and Rate schedule type would run with the same start and end dates.
- Started on: 2024-01-05 00:00:00
- Ended on: 2024-01-08 01:00:00
- For Cron schedules
- Cron expression: 0 12 * * * (run every day at 12 noon)
- First Schedule Execution Time
- Last Schedule Execution Time
- For Rate schedules
- General cases
- Rate: Executes every 12 hours
- First schedule execution time
- Last schedule execution time
- Disable and enable schedule
- Rate: Executes every 3 hours
- First execution
- Second execution
- Disable schedule
- Able schedule
- Third execution
- Fourth execution
- Change Rate
- Rate: Executes every 3 hours
- First execution
- Second execution
- Rate: Change to exeuction every 4 hours
- Third execution
- Fouth execution