end_task_chain
End a chain. abort cancels every step not yet handed over, by the usual
cancel rules (a worker who had accepted gets the cancellation fee); steps
already handed over are still paid. end_early makes the step holding the
item the last one, with deliverable instead of handing it on; later steps
are cancelled the same way. A chain that has not started can only be
aborted, and then everything held is refunded.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | 'abort' or 'end_early'. | |
| reason | No | Optional reason, recorded. | |
| chain_id | Yes | The chain. | |
| deliverable | No | For end_early, required: what the step holding the item does instead of handing it on, e.g. 'post it to this address'. |