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

Action Cable processes getting killed when last session connection closes before "unsubscribe" finishes #10

Open
AhmedWaleedAhmed opened this issue Jan 19, 2022 · 0 comments

Comments

@AhmedWaleedAhmed
Copy link

Technologies used:
ruby '2.7.0', rails '5.2.5', passenger '5.3.2', devise '4.8', redis '4.0'

When passenger process in a shutdown mode and we have our last session this session dies when we have a big transaction like (5 sec) in the unsubscribe method to be done after the session is dead we will face an issue which is passenger won't wait till this transaction ends it will kill it and roll back the transaction so the logic in unsubscribe method won't be done which can cause unwanted behaviors in future especially if it's related to information must be committed in the database to use it in future.

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

No branches or pull requests

1 participant