Skip to content
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

Polling timer for operations should be adjustable #46

Open
rfrye-github opened this issue Dec 15, 2020 · 0 comments
Open

Polling timer for operations should be adjustable #46

rfrye-github opened this issue Dec 15, 2020 · 0 comments

Comments

@rfrye-github
Copy link

In connection.py, class Connection, method _send_recv, lines 406-427 is a while True loop. This polls the API server for completion of an async operation. Line 412 is sleep(1) to sleep 1 second between http GET polls. It would be useful to make this an optional parameter passed in to init and various methods using _execute, default value 1 (retaining existing behavior) so that if running long operations in constrained environments cycles and traffic are not wasted constantly checking for "are we there yet?" results.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant