From 8e6b951a76e08b9ee9740fdd853f77553ad60cd6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iv=C3=A1n=20Ovejero?= Date: Tue, 19 Dec 2023 16:11:21 +0100 Subject: [PATCH] fix(core): Do not display error when stopping jobless execution in queue mode (#8007) No need to surface error to user when stopping a job no longer in queue. https://linear.app/n8n/issue/PAY-1104 --- packages/cli/src/Server.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/cli/src/Server.ts b/packages/cli/src/Server.ts index b46dcc2a71196..e672ec9a49c94 100644 --- a/packages/cli/src/Server.ts +++ b/packages/cli/src/Server.ts @@ -27,7 +27,7 @@ import type { IExecutionsSummary, IN8nUISettings, } from 'n8n-workflow'; -import { ApplicationError, jsonParse } from 'n8n-workflow'; +import { jsonParse } from 'n8n-workflow'; // @ts-ignore import timezones from 'google-timezones-json'; @@ -681,8 +681,8 @@ export class Server extends AbstractServer { const job = currentJobs.find((job) => job.data.executionId === req.params.id); if (!job) { - throw new ApplicationError('Could not stop job because it is no longer in queue.', { - extra: { jobId: req.params.id }, + this.logger.debug('Could not stop job because it is no longer in queue', { + jobId: req.params.id, }); } else { await queue.stopJob(job);