MCPcopy Index your code
hub / github.com/triggerdotdev/trigger.dev / cancel

Method cancel

integrations/replicate/src/predictions.ts:12–24  ·  view source on GitHub ↗

Cancel a prediction.

(key: IntegrationTaskKey, params: { id: string })

Source from the content-addressed store, hash-verified

10
11 /** Cancel a prediction. */
12 cancel(key: IntegrationTaskKey, params: { id: string }): ReplicateReturnType<Prediction> {
13 return this.runTask(
14 key,
15 (client) => {
16 return client.predictions.cancel(params.id);
17 },
18 {
19 name: "Cancel Prediction",
20 params,
21 properties: [{ label: "Prediction ID", text: params.id }],
22 }
23 );
24 }
25
26 /** Create a new prediction. */
27 create(

Callers

nothing calls this directly

Calls 1

runTaskMethod · 0.45

Tested by

no test coverage detected