dwlf_cancel_backtest
Cancel a queued or running backtest by requestId with best-effort termination that preserves the audit trail.
Instructions
Cancel a queued or running backtest by requestId. Pending requests cancel cleanly (worker skips). Running requests get a best-effort cancel — result is marked cancelled but mid-run computation isn't interrupted; the response's bestEffort: true flag indicates this. Terminal states (completed / failed / already-cancelled) return 409 with the actual status. Use this rather than dwlf_delete_backtest when you want to halt without scrubbing the audit trail.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"requestId": "<requestId>"
},
"name": "dwlf_cancel_backtest"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| requestId | Yes | Backtest request ID to cancel |