Handling errors and retries with the Trigger.dev management API
ApiError that you can catch and handle:
requestOptions option to the configure function:
requestOptions parameter as the last argument, which can be used to customize the request options. You can use this to disable retries for a specific request:
task.trigger, task.batchTrigger), and uses retry settings optimized for task execution.