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

Method retries

apps/coordinator/src/backoff.ts:104–118  ·  view source on GitHub ↗
(retries?: number)

Source from the content-addressed store, hash-verified

102 }
103
104 retries(retries?: number) {
105 if (typeof retries !== "undefined") {
106 if (retries > this.#maxRetries) {
107 console.error(
108 `Can't set retries ${retries} higher than maxRetries (${
109 this.#maxRetries
110 }), setting to maxRetries instead.`
111 );
112 this.#retries = this.#maxRetries;
113 } else {
114 this.#retries = retries;
115 }
116 }
117 return this.#clone();
118 }
119
120 async *retryAsync(maxRetries: number = this.#maxRetries ?? Infinity) {
121 let elapsed = 0;

Callers

nothing calls this directly

Calls 2

#cloneMethod · 0.95
errorMethod · 0.65

Tested by

no test coverage detected