-
Notifications
You must be signed in to change notification settings - Fork 5
feat: improve task polling #409
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
base: main
Are you sure you want to change the base?
Conversation
Implements an improved task polling mechanism with configurable wait time. This helps to minimize resource consumption on the Connect server while still providing responsive feedback.
☂️ Python Coverage
Overall Coverage
New FilesNo new covered files... Modified Files
|
src/posit/connect/tasks.py
Outdated
backoff : float, default 1.5 | ||
Backoff multiplier for increasing wait times. | ||
wait : int, default 1 | ||
Wait time in seconds between polling requests. |
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.
Wait time in seconds between polling requests. | |
Maximum amount of time for the task API request to capture status 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.
I don't love my suggested wording, either.
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.
Added a notes section going into more detail.
Added a maximum attempts option so folks can break out of the loop if desired. |
Implements an improved task polling mechanism with configurable wait time. This helps to minimize resource consumption on the Connect server while still providing responsive feedback.
Replaces #408