Documentation Index
Fetch the complete documentation index at: https://planetscale.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
Dashboard Configuration
This extension requires activation via the PlanetScale Dashboard before it can be used. It must be enabled through shared libraries and requires a database restart. To enable pg_cron:Parameters
cron.database_name
- Type: String
- Default:
postgres - Description: Name of the database where pg_cron is installed (via CREATE EXTENSION).
cron.launch_active_jobs
- Type: Boolean
- Default:
true - Description: Switch to enable/disable running cron jobs - applies to all jobs.
cron.log_min_messages
- Type: Select
- Options: error, warning, notice, info, log, debug
- Default:
warning - Description: Lowest severity messages to log from the launcher background worker.
cron.log_run
- Type: Boolean
- Default:
true - Description: Log all cron runs in the cron.job_run_details table.
cron.log_statement
- Type: Boolean
- Default:
true - Description: Log all cron statements before running them.
cron.max_running_jobs
- Type: Integer
- Default:
1 - Minimum:
1 - Description: Maximum number of jobs that can run at once. Must be less than or equal to cluster-level max_worker_processes.
Usage
After enabling the extension through the dashboard, you can install it in your database:cron.schedule function:

