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

Method #doCompleteTask

packages/trigger-sdk/src/io.ts:1476–1482  ·  view source on GitHub ↗
(id: string, task: CompleteTaskBodyV2Input)

Source from the content-addressed store, hash-verified

1474 }
1475
1476 async #doCompleteTask(id: string, task: CompleteTaskBodyV2Input) {
1477 try {
1478 return await this._apiClient.completeTask(this._id, id, task);
1479 } catch (error) {
1480 return;
1481 }
1482 }
1483
1484 #detectAutoYield(location: string, threshold: number = 1500, task?: ServerTask, output?: string) {
1485 const timeRemaining = this.#getRemainingTimeInMillis();

Callers 1

executeTaskMethod · 0.95

Calls 1

completeTaskMethod · 0.80

Tested by

no test coverage detected