StopJobOptions.graceMs property

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).

Signature:

graceMs?: number;