Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 4 commits into from
Sep 29, 2022

Conversation

janober
Copy link
Member

@janober janober commented Sep 5, 2022

@n8n-assistant n8n-assistant bot added core Enhancement outside /nodes-base and /editor-ui n8n team Authored by the n8n team node/improvement New feature or request labels Sep 5, 2022
@netroy netroy self-requested a review September 9, 2022 14:36
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
this.executeErrorWorkflow(error, workflowData, 'internal');

// Keep on trying to activate the workflow
this.addQueuedWorkflowActivation('init', workflowData);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it make sense to check for the error type here? as in, retry only if it's a network issue.

Copy link
Member

@netroy netroy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested by shutting down my rabbitmq container. The workflow successfully reactivated on startup, as well as on a connection retry.

@netroy netroy merged commit 23bd71b into master Sep 29, 2022
@netroy netroy deleted the rabbitmq-reconnect branch September 29, 2022 09:50
@janober janober added the Upcoming Release Will be part of the upcoming release label Sep 29, 2022
@janober
Copy link
Member Author

janober commented Sep 30, 2022

Got released with n8n@0.196.0

@janober janober removed the Upcoming Release Will be part of the upcoming release label Sep 30, 2022
valya pushed a commit to valya/n8n that referenced this pull request Nov 8, 2022
…8n-io#4019)

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

* ⚡ Retry indefinetly

* ⚡ Also automatically retry activation issues on startup
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Enhancement outside /nodes-base and /editor-ui n8n team Authored by the n8n team node/improvement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants