-
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
Bug inside ordering of objects in configure() #6
Comments
@thuotdwz I'll look into it, but first of all please do note that for now this driver won't work with Sqlite (as stated in the README). It's Postgres, Mysql or MariaDB only. |
Unfortunately I was unable to reproduce. |
Thanks for your reply, could be there is something else in my app causing the shut down event loop issue. Appreciate the readme note! Also I think SQLITE can be made to work with a small change, I will file a new ticket for thaat. |
I found out the problem with ERROR: Cannot schedule tasks on an EventLoop that has already shut down. This will be upgraded to a forced crash in future SwiftNIO versions. It turns out, we cannot shutdown eventLoopGroup in FluentQueuesDriver shutdown, because this object is not owned by queues driver. |
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
Hi, I have noticed another bug. If inside configure the order of initialization is done so queues driver is before database, like this:
Application will then receive an error when running migrations:
If order is changed into:
Then the application will run successfully.
I see there is a note in the code
Maybe here we can log a warning message using context.logger to let the developer know the initialization order is wrong so they can fix it?
This would be helpful to much more easily tack down the issue. It took me a while to figure out!
Thanks for working on this package, it is useful!
The text was updated successfully, but these errors were encountered: