Actions
Tasks
Basic Info
Tasks are configured inside the editor platform and are used to run a series of automatic operations on the data present on a Stub.
Stubber uses tasks to facilitate automation.
You can kick off many different types of tasks to do actual changes to systems.
More complex automation decisions are done by using conditions on each individual task. This allows running tasks based on other values or the outcome of previous tasks.
Parameters
name
The unique name of the task within the action
tasktype
Specifies the type of task to run. Any of the documented task types
params
Params allows configuring task specific settings, like headers for an API call or model name for a GPT chat.
See the specific task pages for more information.
The following params are available on every task type:
Show child attributes
execution
Controls how the task's result is handled.
execution.ephemeral
If this is set to true, the task's payload is removed from the stubpost once the action has run.
Later tasks and notifications in the same action can still use the payload, but it is not saved on the stubpost. Only the payload is removed, the task's error is still saved.
This is useful for tasks that return sensitive or bulky results, such as API responses containing personal data, that you do not want stored on the stubpost.
Note that if the task saves values from its payload to the stub's data, those values are still saved to the stub.
To remove the payload of every task in an action, use ephemeral_tasks on the action instead.
Default: false
conditions string[]
Used to conditionally execute a task based on the data present on the stub or the result of previous tasks.
Array of jsonata expressions that evaluate using the core substitution context.
Default: []
Debugging Tasks
Each task returns data from the task that allows inspection of the result of the task.
Each task also returns a key called success being true or false.
In order to debug slow tasks you can inspect the task_duration_ms to see which tasks took the longest to execute.