File size: 546 Bytes
aec3094
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
import { UnexpectedError } from 'n8n-workflow';

export class TaskRunnerRestartLoopError extends UnexpectedError {
	constructor(
		readonly howManyTimes: number,
		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);
	}
}