Setting a frequency
Frequency is a required field in both builders:Available intervals
.minute() and .minutes() are equivalent.
How scheduling works
The hub’s scheduler runs on a tick interval (default: 30 seconds). On each tick, it checks which monitors are due based on their frequency and last execution time, then enqueues jobs for execution.- A monitor with
Frequency.every(1).minute()will be scheduled approximately every 60 seconds - The scheduler ensures no duplicate jobs are created for the same monitor within its frequency window
- If an executor is unavailable, jobs queue up and execute when an executor becomes available
Choosing a frequency
| Frequency | Good for |
|---|---|
| Every 1 minute | Critical health checks, payment APIs, auth endpoints |
| Every 5 minutes | Important API endpoints, core business flows |
| Every 15 minutes | Standard monitoring, CRUD operations |
| Every 1 hour | Low-priority checks, third-party API status |
| Every 1 day | Periodic validation, data integrity checks |
Higher frequencies mean more executions, which affects resource usage on self-hosted deployments and costs on Griffin Cloud.