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

Make timeouts configurable #17

Open
dzolnierz opened this issue Aug 13, 2019 · 0 comments
Open

Make timeouts configurable #17

dzolnierz opened this issue Aug 13, 2019 · 0 comments
Assignees

Comments

@dzolnierz
Copy link
Contributor

In the driver we have places when we wait for code to execute until timed out. Editing code to increase timeouts is problematic. For example:

  145                 # Make sure task is completed
  146                 task = Client.ctx.client.get_task_monitor().wait_for_status(
  147                     task=is_disk_attached,
  148                     timeout=60,
  149                     poll_frequency=2,
  150                     fail_on_statuses=None,
  151                     expected_target_statuses=[
  152                         TaskStatus.SUCCESS, TaskStatus.ABORTED, TaskStatus.ERROR,
  153                         TaskStatus.CANCELED
  154                     ],
  155                     callback=None

Possible solution: add new option timeout to config file.

@dzolnierz dzolnierz self-assigned this Aug 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant