Documents / @faasjs/jobs / JobEvent
Type Alias: JobEvent<TSchema>
JobEvent<
TSchema> =object
Runtime event passed to the underlying job function.
Type Parameters
TSchema
TSchema extends ZodType | undefined = undefined
Properties
attempt?
optionalattempt?:number
Current execution attempt. Defaults to 1 when omitted.
job?
optionaljob?:Partial<JobRecord>
Job metadata. Defaults are filled when omitted, which keeps direct job tests small.
params?
optionalparams?:TSchemaextendsZodType?ZodInfer<TSchema> :Record<string,any>
Raw params passed to the job. They are validated before handler receives params.