Guides

Jobs

Declare manual and scheduled jobs for server-side background work.

For agents: Declare jobs in the manifest, enqueue manual jobs with ctx.jobs.enqueue, and implement job(event, ctx) in the server module.

Server Use

await ctx.jobs.enqueue("send-digest", { user_id: "appusr_123" }, {
  delay_seconds: 60
});

Scheduled jobs use every_15_minutes, hourly, or daily in v0.