chore: upgrade Node.js runtime to v24 across codebase #419

Merged
jason.woltje merged 438 commits from fix/auth-frontend-remediation into main 2026-02-17 01:04:47 +00:00
Showing only changes of commit e891449e0f - Show all commits

View File

@@ -93,12 +93,12 @@ export class CoordinatorClientService {
let lastError: Error | undefined;
for (let attempt = 1; attempt <= this.maxRetries; attempt++) {
try {
const controller = new AbortController();
const timeoutId = setTimeout(() => {
controller.abort();
}, this.timeout);
const controller = new AbortController();
const timeoutId = setTimeout(() => {
controller.abort();
}, this.timeout);
try {
const response = await fetch(url, {
method: "POST",
headers: this.buildHeaders(),
@@ -106,8 +106,6 @@ export class CoordinatorClientService {
signal: controller.signal,
});
clearTimeout(timeoutId);
// Retry on 503 (Service Unavailable)
if (response.status === 503) {
this.logger.warn(
@@ -168,6 +166,8 @@ export class CoordinatorClientService {
} else {
throw lastError;
}
} finally {
clearTimeout(timeoutId);
}
}
@@ -179,26 +179,26 @@ export class CoordinatorClientService {
* @returns true if coordinator is healthy, false otherwise
*/
async isHealthy(): Promise<boolean> {
try {
const url = `${this.coordinatorUrl}/health`;
const controller = new AbortController();
const timeoutId = setTimeout(() => {
controller.abort();
}, 5000);
const url = `${this.coordinatorUrl}/health`;
const controller = new AbortController();
const timeoutId = setTimeout(() => {
controller.abort();
}, 5000);
try {
const response = await fetch(url, {
headers: this.buildHeaders(),
signal: controller.signal,
});
clearTimeout(timeoutId);
return response.ok;
} catch (error) {
this.logger.warn(
`Coordinator health check failed: ${error instanceof Error ? error.message : String(error)}`
);
return false;
} finally {
clearTimeout(timeoutId);
}
}