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/data-export-job

lib/jobs/handlers/data-export-job

Background job for creating user data export archives.

This job fetches all user data, creates a ZIP archive with JSON files, stores it on disk, and sends an email notification when ready.

Variables

dataExportJob

const dataExportJob: object

Job handler for creating user data exports.

Type Declaration

slug

slug: string = "data-export"

handler()

handler: (context) => Promise<{ output: \{ success: boolean; exportId: number; fileSize: number; recordCounts: [ExportSummary](../../services/data-export-types.md#exportsummary); }; }>

Parameters
context

JobHandlerContext<{ exportId: number; }>

Returns

Promise<{ output: \{ success: boolean; exportId: number; fileSize: number; recordCounts: [ExportSummary](../../services/data-export-types.md#exportsummary); }; }>

Last updated on