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
constquotaResetJobConfig: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
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