-
Notifications
You must be signed in to change notification settings - Fork 16
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
Remove code to shutdown EventLoopGroup in FluentQueuesDriver #11
Conversation
This will fix error message: ERROR: Cannot schedule tasks on an EventLoop that has already shut down. This will be upgraded to a forced crash in future SwiftNIO versions. when using Ctrl+C to shut down application. EventLoopGroup here is not owned by FluentQueuesDriver and used by other objects during shutdown procedure Fixes m-barthelemy#6
Can we please add this fix to a release? |
I added this exactly because I was getting issues during shutdown (using Ctrl+C) - the app was hanging. |
I create new vapor template using vapor-beta new command, then add your package dependency. Just below the line
I add two lines
If I run this template app on Mac OS and do ctrl+c I instantly see error messages [ NOTICE ] Server starting on http://127.0.0.1:8080 If you try the same steps do you also see this error? |
Hi, have you had a chance to check on this bug fix? |
Not yet unfortunately. |
sure, I uploaded a sample app here https://github.com/thuotdwz/app All you need to see the bug is run "swift run" and then type Ctrl+c once started |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems to help, finally merging this.
This will fix error message:
ERROR: Cannot schedule tasks on an EventLoop that has already shut down. This will be upgraded to a forced crash in future SwiftNIO versions.
when using Ctrl+C to shut down application. EventLoopGroup here is not owned by FluentQueuesDriver and used by other objects during shutdown procedure
Fixes #6