-
Notifications
You must be signed in to change notification settings - Fork 11
Allow creating instances without waiting #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
base: master
Are you sure you want to change the base?
Allow creating instances without waiting #80
Conversation
Add `InstancesService.create_nowait` method that returns immediately after sending a create request to the API.
|
Good idea! Can this be rewritten to support the same syntax as for clusters, i.e. ...instance.create(
# Set to None to not wait for provisioning but return immediately
wait_for_status=verda_client.constants.cluster_status.PROVISIONING
) |
|
@huksley, even with
Here are a few possible ways to address this:
Please let me know if any of these options seem reasonable, or if you have alternative suggestions. |
|
Would it be ok if instance.create() with with wait_for_status=None would return instance populated with ID and values passed as request payload? that way, no get instance method will be needed |
|
@huksley, |
|
@huksley, I’ve added the I also had to add support for callables in |
Add
InstancesService.create_nowaitmethod that returns immediately after sending a create request to the API.Resolves #79