Creates and runs a Task inside a Run.
io.runTask()
to create and run a Task inside a Run.
run()
. See
resumability for more information.{ retryAt: Date, error?: Error }
will retry the Task at the specified Date. You can also just return a new Error
object to throw a new error. Returning null
or undefined
will rethrow the original error. If you want to force retrying to be skipped, return { skipRetrying: true }
.options.callback
is enabled, the Promise will instead resolve with the body of the first request sent to task.callbackUrl
.