Skip to Content
⚠️Active Development Notice: TimeTiles is under active development. Information may be placeholder content or not up-to-date.

web


web / lib/jobs/handlers/quota-reset-job

lib/jobs/handlers/quota-reset-job

Job handler for resetting daily quota counters.

This job runs daily at midnight UTC to reset user usage counters for quotas that operate on a daily basis (file uploads, URL fetches, etc).

Variables

quotaResetJobConfig

const quotaResetJobConfig: object

Job configuration for the quota reset task.

Type declaration

slug

slug: "quota-reset"

handler()

handler: (context) => Promise<{ output: { success: boolean; message: string; timestamp: string; }; }>

Parameters
context

JobHandlerContext

Returns

Promise<{ output: { success: boolean; message: string; timestamp: string; }; }>

schedule

schedule: object[]

Run daily at midnight UTC Cron format: minute hour day month weekday

retries

retries: number = 3

waitUntil

waitUntil: number = 120000

Last updated on