The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
// Background jobs that could not be published to QStash (e.g. QStash outage).
// The /api/cron/queue/retry cron republishes these and deletes them on success.
model Job {
id String @id
name String
payload Json
options Json? // dispatch options replayed verbatim: deduplicationId, retries, queue, flowControl, label
scheduledAt DateTime @default(now()) // when we should publish the job
attempts Int @default(0)
lastError String? @db.Text
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
@@index([scheduledAt, attempts]) // retry cron: due jobs under the attempt cap
}