Optional
retryOptions for retrying the task. Has no effect on sleeping tasks.
Optional
sleepThe number of milliseconds to wait before running the task. Has no effect on sleeping tasks.
Optional
timeoutThe number of milliseconds after which the task will be timed out.
Runtime options for enqueuing a task that override the task's default configuration.
These options allow you to customize task behavior at enqueue time without changing the task definition. Useful for adjusting timeouts or retry behavior based on runtime conditions.
Example