feat(RabbitMQ Trigger Node): Automatically reconnect on disconnect (#4019)

* feat(RabbitMQ Trigger Node): Automatically reconnect on disconnect

*  Retry indefinetly

*  Also automatically retry activation issues on startup
This commit is contained in:
Jan Oberhauser
2022-09-29 11:50:18 +02:00
committed by GitHub
parent de4dd53a53
commit 23bd71b82a
6 changed files with 145 additions and 12 deletions

View File

@@ -102,7 +102,8 @@ export class ActiveWorkflows {
} catch (error) {
// eslint-disable-next-line @typescript-eslint/no-unsafe-call
throw new WorkflowActivationError(
'There was a problem activating the workflow',
// eslint-disable-next-line @typescript-eslint/restrict-template-expressions, @typescript-eslint/no-unsafe-member-access
`There was a problem activating the workflow: "${error.message}"`,
error,
triggerNode,
);
@@ -128,7 +129,8 @@ export class ActiveWorkflows {
} catch (error) {
// eslint-disable-next-line @typescript-eslint/no-unsafe-call
throw new WorkflowActivationError(
'There was a problem activating the workflow',
// eslint-disable-next-line @typescript-eslint/restrict-template-expressions, @typescript-eslint/no-unsafe-member-access
`There was a problem activating the workflow: "${error.message}"`,
error,
pollNode,
);