Scheduled jobs

Use jobs.schedule to run a named handler on a recurring schedule. Backify supports hourly, daily, weekly, and cron schedules. Keep the handler safe to retry and avoid putting secrets in job payloads.

import { jobs } from "@backifydev/sdk";

jobs.schedule.daily("refresh-summary", async () => {
  // Refresh application data.
}, "02:00");

See jobs for enqueueing background work.