StopJobOptions interface

Options on stopJob. migrationId marks the stop as the source side of that migration, recorded in the job’s history as "migration".

Signature:

export interface StopJobOptions

Properties

Property Type Description

graceMs?

number

(Optional) How long (ms) the job’s containers get to finish before they are killed — docker’s stop timeout, per container. 0 kills at once. Omitted = the worker’s default (docker compose’s 10 s, or the product’s own stop_grace_period). At most 600000; protocol 1.1 (a 1.0 worker ignores it).

migrationId?

string

(Optional)