command
module
Version:
v0.0.0-...-a5ac1f4
Opens a new window with list of versions in this module.
Published: Feb 11, 2026
License: Apache-2.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
Cron Module Example
This example demonstrates how to use the cron module to deploy a scheduled Cloud Run job with success alerting.
Features Demonstrated
- Basic cron job setup - Deploys a simple Go application that runs every 8 minutes
- Success alerting - Configures monitoring to alert when the job fails to complete successfully
- Separate duration and alignment - Shows how to use different values for detection speed vs monitoring window
Alert Configuration
The example configures success alerting with:
- Alignment period: 30 minutes (looks for any successful execution in the past 30 minutes)
- Duration: 15 minutes (alerts after 15 minutes of no successful executions)
This configuration provides:
- Fast detection of failures (15 minutes)
- While checking a broader context window (30 minutes)
- Suitable for jobs that run every 8 minutes
Usage
terraform init
terraform apply -var="project_id=your-project-id"
Note
Remember that the alert will not fire until the job has completed successfully at least once. This is a GCP requirement for metric-absence conditions.
Requirements
No requirements.
Providers
Modules
| Name |
Source |
Version |
| cron |
../ |
n/a |
Resources
| Name |
Description |
Type |
Default |
Required |
| project_id |
The project that will host the cron job. |
string |
n/a |
yes |
Outputs
No outputs.
Documentation
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.