mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2026-08-30 07:10:37 +02:00
15 lines
588 B
TypeScript
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',
|
|
});
|
|
}
|
|
}
|