The simplest type of task which can be triggered from elsewhere in your code.
task()
function and can be triggered from your backend or inside another task.
Like all tasks they don’t have timeouts, they should be placed inside a /trigger folder, and you can configure them.
retry.onThrow
. This will retry the block of code if an error is thrown. This is useful when you don’t want to retry the whole task, but just a part of it. The entire task will use the default retrying, so can also retry.
Additionally this task uses wait.for
to wait for a certain amount of time before sending the next email. During the waiting time, the task will be paused and will not consume any resources.