description |
---|
Create a Cloud Scheduler job in GCP |
Google Cloud Scheduler is a fully managed cron job service that allows you to schedule jobs to automate the execution of tasks at regular intervals without manual intervention. You can create a Cloud Scheduler job to trigger from a Pub/Sub topic, an HTTP endpoint, or an App Engine.
The following table describes each target type's function and common use cases.
Option | Description | Use Cases |
---|---|---|
HTTP | Schedule HTTP(S) requests | APIs, webhooks |
Pub/Sub | Publish messages to a topic | Event-driven architectures |
App Engine | Invoke serverless functions/services | Background tasks, scheduled jobs |
-
From the DuploCloud Portal, navigate to Cloud Services -> Cloud Scheduler, and click Add. The Cloud Scheduler Add Job pane displays. \
The Cloud Scheduler Add Job pane
-
Enter a Name, a Schedule (in cron format), and a Description, if needed.
-
From the Target Type list box, select Pub Sub, App Engine, or HTTP. Complete the fields associated with the selected target type:
- Pub/Sub: Select a Topic Name, and add Attributes and Data, if needed.
- App Engine: Enter a Service and Version. Select an HTTP Method. Enter a Relative URI and HTTP Headers, if required.
- HTTP: Select an HTTP Method. Enter a Target URI. Select an Authentication method. Enter HTTP Headers, if needed.
- Click Create. The Cloud Scheduler job is created.