n8n/packages/cli/src/errors/duplicate-execution.error.ts
mfsiega b8b75719ba
feat(core): Warn and skip on duplicate scheduled executions (#28649)
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-29 10:16:12 +00:00

13 lines
291 B
TypeScript

import { OperationalError } from 'n8n-workflow';
export class DuplicateExecutionError extends OperationalError {
constructor(
readonly deduplicationKey: string,
cause?: Error,
) {
super(`Execution with deduplication key "${deduplicationKey}" already exists`, {
cause,
});
}
}