-
-
Notifications
You must be signed in to change notification settings - Fork 148
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
waitFor
does not properly cancel
#174
Comments
I'll take care of this. 👍 |
svettwer
added a commit
that referenced
this issue
Nov 9, 2020
svettwer
added a commit
that referenced
this issue
Nov 10, 2020
…ly-cancel (#174) Cancel interval timer creation
svettwer
added a commit
that referenced
this issue
Nov 10, 2020
svettwer
added a commit
that referenced
this issue
Nov 10, 2020
svettwer
added a commit
that referenced
this issue
Nov 10, 2020
(#174) Added timer tolerance to stabilize CI pipeline
1 task
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Version
1.5.0
Short overview
Extracted from #173
Issue occurs on
Detailed error description
I was trying to debug this case to find the cause, I did not find it but found another related bug with
screen.waitFor
, thewaitFor
uses this utility, which does not clear the interval correctly if the max timeout is reached before getting the result of theaction()
.this is the flow:
action()
call happensaction()
takes a lot to resolve and the time spent is longer than maxDuration then the maxTimeout callback will be called, which will finish the promise (in this case with a reject)action()
finished, let's say that it ended rejected, so the code will go to here which creates a new timer, and if somehow theaction()
continues to be rejected, it will basically create an interval that continues to be executing, which basically will prevent the node process to exit.maybe something similar is happening in the files related to the OpenCV
Steps to reproduce error
Additional content
here is basically the code needed to fix this case in
util/poll-action.function.ts
, not sure if you want me to send a PRThe text was updated successfully, but these errors were encountered: