Cron Jobs
Pulsabase allows you to schedule any edge function using standard cron expression syntax. Scheduled jobs run on the backend — no client needs to be online.
Creating a Cron Job
Section titled “Creating a Cron Job”- Go to Dashboard → Edge Functions → Cron
- Click New Cron Job
- Select the function to invoke
- Enter a cron expression
- (Optional) Define a fixed payload to pass to the function on each invocation
- Save — the job starts immediately
Cron Expression Syntax
Section titled “Cron Expression Syntax”┌───────────── minute (0–59)│ ┌─────────── hour (0–23)│ │ ┌───────── day of month (1–31)│ │ │ ┌─────── month (1–12)│ │ │ │ ┌───── day of week (0–6, 0=Sunday)│ │ │ │ │* * * * *Common Examples
Section titled “Common Examples”| Expression | Meaning |
|---|---|
0 9 * * * | Every day at 09:00 UTC |
0 * * * * | Every hour on the hour |
*/15 * * * * | Every 15 minutes |
0 0 * * 1 | Every Monday at midnight |
0 0 1 * * | First day of every month |
30 8 * * 1-5 | Monday–Friday at 08:30 UTC |
Use Cases
Section titled “Use Cases”| Use Case | Cron Expression | Function |
|---|---|---|
| Daily digest email | 0 8 * * * | send-daily-digest |
| Expire trial accounts | 0 0 * * * | expire-trials |
| Sync external API data | 0 */4 * * * | sync-external-api |
| Weekly report | 0 9 * * 1 | generate-weekly-report |
| Cleanup old sessions | 0 2 * * * | cleanup-sessions |
Observability
Section titled “Observability”Every cron execution creates an entry in the Executions log with the following metadata:
- Trigger type:
cron - Cron expression
- Execution status (
success/error) - Duration
- Function input/output
Navigate to Dashboard → Edge Functions → Executions and filter by trigger type cron to monitor scheduled jobs.
Pausing / Resuming
Section titled “Pausing / Resuming”Toggle cron jobs on/off from the Dashboard → Edge Functions → Cron page without deleting them. Paused jobs retain their configuration and history.