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
Redis connection error event handler is set ONLY after connection is established #666
Comments
It sounds like a reasonable change. |
Alright! I will create a PR to address this. |
@manast How do I run the test locally? I got a fresh copy of the repo, did
|
That is quite strange considering there are 231 tests in total... |
@YimingIsCOLD could you please try the last version, a fix was merged |
i just tired this , and it works kinda.....
The not a huge deal~ |
@lukepolo, yes you are right, that unhandled promise rejection has some time in the base code, but the fix was preventing the unhandled error event as @YimingIsCOLD mentioned. I'll need to make more investigation about the unhandled rejection. |
Bull Version: 1.40.1
An unhandled error event is logged by
IORedis
when creating a new queue with no redis server available.If there is a redis server available during the queue creation and somehow lost connection to the redis server, the queue will emit an error with
Something went wrong!
.After some investigation, I found out that the error event hook is set after a
initializing
has been resolved. However, in the case where there is no redis server available during queue creation, it will be stuck inwaitUntilReady
promise and thus not setting the error event hook.I will suggest to place the hook at here instead of after the
initializing
has been resolved. What you do think?The text was updated successfully, but these errors were encountered: