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

Method updateStatus

packages/trigger-sdk/src/apiClient.ts:283–303  ·  view source on GitHub ↗
(runId: string, id: string, status: StatusUpdate)

Source from the content-addressed store, hash-verified

281 }
282
283 async updateStatus(runId: string, id: string, status: StatusUpdate) {
284 const apiKey = await this.#apiKey();
285
286 this.#logger.debug("Update status", {
287 id,
288 status,
289 });
290
291 return await zodfetch(
292 JobRunStatusRecordSchema,
293 `${this.#apiUrl}/api/v1/runs/${runId}/statuses/${id}`,
294 {
295 method: "PUT",
296 headers: {
297 "Content-Type": "application/json",
298 Authorization: `Bearer ${apiKey}`,
299 },
300 body: JSON.stringify(status),
301 }
302 );
303 }
304
305 async updateSource(
306 client: string,

Callers 1

updateMethod · 0.45

Calls 3

#apiKeyMethod · 0.95
zodfetchFunction · 0.70
debugMethod · 0.65

Tested by

no test coverage detected