BatchJob
A Batch Job indicates an asynchronus task stored in the Medusa backend. Its status determines whether it has been executed or not.
Properties
idstringRequiredThe unique identifier for the batch job.
created_atDateRequiredThe date with timezone at which the resource was created.
updated_atDateRequiredThe date with timezone at which the resource was last updated.
deleted_atnull | DateRequiredThe date with timezone at which the resource was deleted.
typestringRequiredThe type of batch job.
created_bynull | stringRequiredThe unique identifier of the user that created the batch job.
The details of the user that created the batch job.
contextRecord<string, unknown>RequiredThe context of the batch job, the type of the batch job determines what the context should contain.
resultobject & Record<string, unknown>RequiredThe result of the batch job.
resultobject & Record<string, unknown>Requireddry_runbooleanRequiredSpecify if the job must apply the modifications or not.
Default: false
The status of the batch job.Default: created
createdpre_processed_atDateThe date from which the job has been pre-processed.
processing_atDateThe date the job is processing at.
confirmed_atDateThe date when the confirmation has been done.
completed_atDateThe date of the completion.
canceled_atDateThe date of the concellation.
failed_atDateThe date when the job failed.
Was this section helpful?