Skip to content

Commit 47361ff

Browse files
committed
fix: added catch handler for informer.start() failures
1 parent 55c45ab commit 47361ff

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

apps/supervisor/src/services/failedPodHandler.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,14 @@ export class FailedPodHandler {
283283
// Reconnect on errors
284284
await setTimeout(this.reconnectIntervalMs);
285285
await this.informer.start();
286+
} catch (handlerError) {
287+
const error = handlerError instanceof Error ? handlerError : undefined;
288+
this.logger.error("onError: reconnection attempt failed", {
289+
informerName,
290+
error: error?.message,
291+
errorType: error?.name,
292+
errorStack: error?.stack,
293+
});
286294
} finally {
287295
this.reconnecting = false;
288296
}

0 commit comments

Comments
 (0)