-
Notifications
You must be signed in to change notification settings - Fork 80
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
Update force merge polling #489
Update force merge polling #489
Conversation
8880977
to
e17abfd
Compare
request_context_holder.on_client_request_end() | ||
complete = True | ||
break | ||
await asyncio.sleep(params.get("poll-period")) |
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.
What happens when a connection timeout is thrown if a long poll period is specified and control returns to the caller?
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.
Did you mean when connection timeout is thrown during get task api?
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.
Yes, admittedly a small possibility, but any exceptions raised by the client will get caught by the caller otherwise.
e17abfd
to
81ef433
Compare
@gkamat can you take look at one more time. Thanks |
Change force merge polling logic to use wait_for_completion to false, to make it async and use task's get api to check whether task is completed or not to exit from force merge. Here, request end time is calcuated only after task is completed. This request end time will not be 100% accurate, since, we use polling to check whether task status is completed or not. Signed-off-by: Vijayan Balasubramanian <[email protected]>
81ef433
to
f7eb800
Compare
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.
Just responded to your earlier comments. Will take a look at the new updates that were just force-pushed when I get a chance, for approval. Thanks for the changes.
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.
Left a couple comments
Signed-off-by: Vijayan Balasubramanian <[email protected]>
9f46928
to
698a068
Compare
@IanHoang Updated PR with your feedback, Can you take a look one more time ? Thanks. |
@gkamat Can you take a look at this PR? This change is blocker for some of our runs that depends on large force merge time. |
Description
Change force merge polling logic to use wait_for_completion
to false, to make it async and use task's get api to check
whether task is completed or not to exit from force merge.
Here, request end time is calcuated only after task is completed.
This request end time will not be 100% accurate, since, we use polling to check
whether task status is completed or not.
Issues Resolved
Testing
[Describe how this change was tested]
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.