Files
n8n-enterprise-unlocked/packages/cli/src/runners/errors/task-runner-restart-loop-error.ts
T

15 lines
588 B
TypeScript

import { ApplicationError } from 'n8n-workflow';
export class TaskRunnerRestartLoopError extends ApplicationError {
constructor(
public readonly howManyTimes: number,
public readonly timePeriodMs: number,
) {
const message = `Task runner has restarted ${howManyTimes} times within ${timePeriodMs / 1000} seconds. This is an abnormally high restart rate that suggests a bug or other issue is preventing your runner process from starting up. If this issues persists, please file a report at: https://github.com/n8n-io/n8n/issues`;
super(message, {
level: 'fatal',
});
}
}