Documents for @litert/xxl-job-integration / Executor/Typings / IEnqueueTaskArgs
Interface: IEnqueueTaskArgs
Defined in: src/lib/Executor/Typings.ts:81
The arguments for executors, to put a task to the queue.
Properties
args
readonlyargs:null|string
Defined in: src/lib/Executor/Typings.ts:98
The arguments for the job, which is configured in the xxl-job-admin.
jobId
readonlyjobId:number
Defined in: src/lib/Executor/Typings.ts:88
The job ID, which is unique, registered in the xxl-job-admin.
name
readonlyname:string
Defined in: src/lib/Executor/Typings.ts:105
The name of the handler to run.
Only available for
EJobType.BEANjobs.
requestedAt
readonlyrequestedAt:number
Defined in: src/lib/Executor/Typings.ts:143
The time when the job was requested to run, as a UNIX timestamp in milliseconds.
source?
readonlyoptionalsource:object
Defined in: src/lib/Executor/Typings.ts:117
The source code of the job to be executed.
Only available for
EJobType.NODE_JSjobs.
code
readonlycode:string
The content of source code of the job.
updatedAt
readonlyupdatedAt:number
When the source code was last updated, as a UNIX timestamp in milliseconds.
strategyOnBlocked
readonlystrategyOnBlocked:EExecutorBlockStrategy
Defined in: src/lib/Executor/Typings.ts:110
The strategy to use when the job is already running on the executor.
taskId
readonlytaskId:number
Defined in: src/lib/Executor/Typings.ts:133
The task ID, which is unique for each task.
timeoutSec
readonlytimeoutSec:number
Defined in: src/lib/Executor/Typings.ts:138
The timeout for the job in seconds.
type
readonlytype:EJobType
Defined in: src/lib/Executor/Typings.ts:93
The type of the job (runner).