-
-
Notifications
You must be signed in to change notification settings - Fork 634
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
Ace commands never ends when queueing a job #2184
Comments
Can you share the code which tries to close connection with the Redis and the database? |
Also, in future, I suggest creating a discussion thread and not an issue (until it has been confirmed as an issue). Same for this #2185 |
Sorry, you are right. I was dubious about it too. |
|
Couple of things
|
Yes, this is the
Tried with |
May I know how this config indicates that it is using the AdonisJS Redis provider? |
Sorry, you are right, I'm specifying the redis configurations myself, so maybe Bull opens a different connection that I do not control? |
Looking at their source code. They are not using the AdonisJS Redis provider, instead they pass the config directly to bull, which indeed creates and manages it own Redis instance. You will have to check the Bull or AdonisJS/bull API to see how you can close those connections |
The simplest way will be to call |
I also opened an issue on their side: Rocketseat/adonis-bull#62 |
Yes, this way it works:
Not sure if it could cause some other unexpected problem. |
@thetutlage I will use this solution, thank you for your help. I think you can close the issue and lets see if the guy over the Bull community can implement a more elegant way of doing it. |
Package version
"adonis-version": "4.1.0",
Node.js and npm version
node v12.18.2
npm 6.14.10
Sample Code (to reproduce the issue)
Result: Job will be executed but the command won't end (close it with CTRL+C)
Expected result: job is triggered and command closes correctly.
What I tried:
Possible hits:
The text was updated successfully, but these errors were encountered: