Skip to main content
zerotal

Documentation


Documentation / @zerotal/admin / index / ImportRecordsJob

Class: ImportRecordsJob

Defined in: admin/src/actions/ImportRecordsJob.ts:43

A queued CSV import.

Deliberately shaped like a @zerotal/queue Jobhandle() plus payload() — without extending it, so @zerotal/admin needs no dependency on the queue package. Registering it works the same either way.

Constructors

Constructor

new ImportRecordsJob(_payload): ImportRecordsJob

Defined in: admin/src/actions/ImportRecordsJob.ts:47

Parameters

_payload

ImportRecordsPayload

Returns

ImportRecordsJob

Properties

queue

readonly queue: "default" = "default"

Defined in: admin/src/actions/ImportRecordsJob.ts:44


maxAttempts

readonly maxAttempts: 1 = 1

Defined in: admin/src/actions/ImportRecordsJob.ts:45

Accessors

className

Get Signature

get className(): string

Defined in: admin/src/actions/ImportRecordsJob.ts:53

Returns

string

Methods

payload()

payload(): Record<string, unknown>

Defined in: admin/src/actions/ImportRecordsJob.ts:49

Returns

Record<string, unknown>


handle()

handle(): Promise<void>

Defined in: admin/src/actions/ImportRecordsJob.ts:57

Returns

Promise<void>