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

Nats connection closed #197

Open
vishal-biyani opened this issue Sep 5, 2018 · 1 comment
Open

Nats connection closed #197

vishal-biyani opened this issue Sep 5, 2018 · 1 comment

Comments

@vishal-biyani
Copy link
Member

After certain time the workflow pod looses connection to the Nats. This is fixed after the workflow pod is restarted.

time="2018-09-05T04:23:56Z" level=info msg="Event added: WORKFLOW_CREATED" aggregate=workflow/29dc36fc-b037-11e8-8f31-42010aa0001c nats.subject=workflow.29dc36fc-b037-11e8-8f31-42010aa0001c parent=/
time="2018-09-05T04:23:56Z" level=error msg="Request error: nats: connection closed"
time="2018-09-05T04:23:56Z" level=error msg="failed to specialize: failed to specialize package: failed to store workflow internally: nats: connection closed"

This leads to 502 on any workflow function being called. We should have some way to check and restore connection to nats so that the user does not have to face 502.

@erwinvaneyk
Copy link
Member

Thanks @vishal-biyani for the issue! Most of the reconnecting logic is handled by the nats client, but apparently not in all cases. To fix this, we should indeed add functionality to reconnect to NATS upon connection loss.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants