From 163859b87a19f3795e2689ce8eba2e2ce6766684 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E0=A4=95=E0=A4=BE=E0=A4=B0=E0=A4=A4=E0=A5=8B=E0=A4=AB?= =?UTF-8?q?=E0=A5=8D=E0=A4=AB=E0=A5=87=E0=A4=B2=E0=A4=B8=E0=A5=8D=E0=A4=95?= =?UTF-8?q?=E0=A5=8D=E0=A4=B0=E0=A4=BF=E0=A4=AA=E0=A5=8D=E0=A4=9F=E2=84=A2?= Date: Thu, 23 Mar 2023 20:17:02 +0100 Subject: [PATCH 1/4] fix(core): Initialize queue in the webhook server as well --- packages/cli/src/commands/webhook.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/cli/src/commands/webhook.ts b/packages/cli/src/commands/webhook.ts index aada27f3cd..cc1ac53b35 100644 --- a/packages/cli/src/commands/webhook.ts +++ b/packages/cli/src/commands/webhook.ts @@ -3,6 +3,7 @@ import { LoggerProxy, sleep } from 'n8n-workflow'; import config from '@/config'; import { ActiveExecutions } from '@/ActiveExecutions'; import { WebhookServer } from '@/WebhookServer'; +import { Queue } from '@/Queue'; import { BaseCommand } from './BaseCommand'; import { Container } from 'typedi'; @@ -79,6 +80,7 @@ export class Webhook extends BaseCommand { } async run() { + await Container.get(Queue).init(); await new WebhookServer().start(); this.logger.info('Webhook listener waiting for requests.'); From 1663319c1f36092026b054af1a4924edd96f6a61 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 24 Mar 2023 07:30:14 +0100 Subject: [PATCH 2/4] :rocket: Release 0.221.1 (#5767) Co-authored-by: netroy --- CHANGELOG.md | 9 +++++++++ package.json | 2 +- packages/cli/package.json | 2 +- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f2aa55521a..613493c61b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,12 @@ +## [0.221.1](https://github.com/n8n-io/n8n/compare/n8n@0.221.0...n8n@0.221.1) (2023-03-23) + + +### Bug Fixes + +* **core:** Initialize queue in the webhook server as well ([163859b](https://github.com/n8n-io/n8n/commit/163859b87a19f3795e2689ce8eba2e2ce6766684)) + + + # [0.221.0](https://github.com/n8n-io/n8n/compare/n8n@0.220.0...n8n@0.221.0) (2023-03-23) diff --git a/package.json b/package.json index 830e762f8e..11c24f1777 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "n8n", - "version": "0.221.0", + "version": "0.221.1", "private": true, "homepage": "https://n8n.io", "engines": { diff --git a/packages/cli/package.json b/packages/cli/package.json index c0649065ec..93507c1490 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -1,6 +1,6 @@ { "name": "n8n", - "version": "0.221.0", + "version": "0.221.1", "description": "n8n Workflow Automation Tool", "license": "SEE LICENSE IN LICENSE.md", "homepage": "https://n8n.io", From 6c7772a0b3276ffe9e5ab8029e17a0ed743ee5a7 Mon Sep 17 00:00:00 2001 From: Michael Auerswald Date: Fri, 24 Mar 2023 12:32:39 +0100 Subject: [PATCH 3/4] fix(core): Assign properties.success earlier to set executionStatus correctly --- packages/cli/src/InternalHooks.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/cli/src/InternalHooks.ts b/packages/cli/src/InternalHooks.ts index 54de4a3a22..ea36dc04b8 100644 --- a/packages/cli/src/InternalHooks.ts +++ b/packages/cli/src/InternalHooks.ts @@ -284,6 +284,8 @@ export class InternalHooks implements IInternalHooksClass { properties.user_id = userId; } + properties.success = !!runData?.finished; + let executionStatus: ExecutionStatus; if (runData?.status === 'crashed') { executionStatus = 'crashed'; @@ -295,7 +297,6 @@ export class InternalHooks implements IInternalHooksClass { if (runData !== undefined) { properties.execution_mode = runData.mode; - properties.success = !!runData.finished; properties.is_manual = runData.mode === 'manual'; let nodeGraphResult: INodesGraphResult | null = null; From 136f752dbcb86c8fe7fd6643d661efef00f600b0 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 24 Mar 2023 12:47:49 +0100 Subject: [PATCH 4/4] :rocket: Release 0.221.2 (#5774) Co-authored-by: netroy --- CHANGELOG.md | 9 +++++++++ package.json | 2 +- packages/cli/package.json | 2 +- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 613493c61b..63647ccc1d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,12 @@ +## [0.221.2](https://github.com/n8n-io/n8n/compare/n8n@0.221.1...n8n@0.221.2) (2023-03-24) + + +### Bug Fixes + +* **core:** Assign properties.success earlier to set executionStatus correctly ([6c7772a](https://github.com/n8n-io/n8n/commit/6c7772a0b3276ffe9e5ab8029e17a0ed743ee5a7)) + + + ## [0.221.1](https://github.com/n8n-io/n8n/compare/n8n@0.221.0...n8n@0.221.1) (2023-03-23) diff --git a/package.json b/package.json index 11c24f1777..88b1fbc7ac 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "n8n", - "version": "0.221.1", + "version": "0.221.2", "private": true, "homepage": "https://n8n.io", "engines": { diff --git a/packages/cli/package.json b/packages/cli/package.json index 93507c1490..a9bbde9c65 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -1,6 +1,6 @@ { "name": "n8n", - "version": "0.221.1", + "version": "0.221.2", "description": "n8n Workflow Automation Tool", "license": "SEE LICENSE IN LICENSE.md", "homepage": "https://n8n.io",