Task Retention
Requence deletes old tasks by itself, so the task history of a scope does not grow without limit. Four settings control it. Each scope has its own values, on its Settings → Tasks page. They apply to the tasks of that scope only; a scope does not inherit them from the level above.
| Setting | Default | What it does |
|---|---|---|
Task history limit (retain.max) |
100 | Keeps the newest N finished tasks of the scope. Older ones are deleted. |
Max tasks age (retain.age) |
96 hours | Deletes a finished task when its last status change is older than this. |
Automation run history limit (retain.automationMax) |
1 000 | Keeps the newest N finished action runs per automation. 0 = no count limit. |
Max wait for delivery (retain.undelivered) |
720 hours (30 days) | Deletes a result that waits for an ack longer than this. 0 = never. |
The operator of your Requence installation can change the defaults. The task history limit and the max tasks age cannot be higher than the installation’s default.
What is deleted, and what is not
Section titled “What is deleted, and what is not”- Only ended tasks. A task is deleted only when it is Successful, Failed, Stopped or Idle. A running task is never deleted. A task in Awaiting Delivery is not ended either: only the delivery deadline deletes it (see below).
- Never a protected task. A protected task is not deleted, and it does not count toward the task history limit.
- Everything of a task goes with it: its sub-tasks at every depth, its node history, its
files, and what it kept in the store under the
taskbinding. - Sub-tasks are not counted. The task history limit and the max tasks age count the tasks you started. A sub-task goes with the task that started it. The one exception is the action runs of an automation — see below.
Automation runs
Section titled “Automation runs”An automation runs as one long task. Each trigger event starts the action as its own sub-task. These action runs follow their own rules:
- The max tasks age deletes a finished action run, also while the automation still runs.
- The automation run history limit keeps the newest N finished action runs of each automation, over all of its runs. One busy automation therefore cannot push the other tasks of the scope out of the task history limit.
- When an action run is deleted, the automation’s own task deletes what it kept for that event: the trigger output, the nodes’ history and the files. The automation task stays small while it runs.
- An event that never started an action run (the trigger dropped it) is deleted after the max tasks age. So is node history that belongs to no event, for example a reconnect of the trigger. The first start of each node stays, so the canvas can still draw it.
Results that wait for delivery
Section titled “Results that wait for delivery”A task started with requireAck — or an
automation’s action run with
requireAck — waits in Awaiting Delivery
until your app acks it. Retention keeps that result for your app:
- The parent waits too. A task is not deleted while one of its sub-tasks, at any depth, waits for delivery. Deleting it would delete the waiting result with it. A task held back this way does not count toward the task history limit.
- The deadline. A result that waits longer than the max wait for delivery is deleted. After that, its parent is no longer held back.
This is the guarantee your app gets: every result waits for its ack for at least the max wait
for delivery. An app that is down for longer loses the results that expired in that time.
Set the value higher than the longest time your app can be down. With 0, a result waits
forever — and so does every task above it.