All blocks
Block
Available
Pro

Scheduled jobs and rate limiting

Version
0.1.0
Database part
Yes

The contract

Takes a job or a route and its limits. Runs on time, checks authority, and slows abuse.

Settings

NameWhat it does
cronSecretNamesOther names for the scheduler's current and previous secrets. Defaults to LOVABLE_CRON_SECRET and LOVABLE_CRON_SECRET_PREVIOUS.
trustedAddressHeaderThe one header the host sets to the caller's address. Defaults to cf-connecting-ip.
whenUnavailableRefuse or allow when a count cannot be read. Defaults to refuse.
keepRunDaysHow many days of finished runs the daily tidy up keeps. Defaults to 90.

Requires

Live demo

A nightly job

The work

Run the job, then try it failing or never reporting back.

Health for an hourly job Has not run yet.

Slowing a caller

The count

Sign in may be tried 3 times a minute from one address.

Checking the scheduler

This demo's secret is demo-scheduler-secret-0001. A real app keeps its own in a server secret.

The scheduler sends the app's secret. Anyone else is turned away.