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

Wait method (Task) to finish? #11

Open
mharj opened this issue Feb 12, 2018 · 1 comment
Open

Wait method (Task) to finish? #11

mharj opened this issue Feb 12, 2018 · 1 comment

Comments

@mharj
Copy link

mharj commented Feb 12, 2018

Seems that on old API there was client.monitor.task to track Task to finish (i.e. CreateSnapshot_Task).
Is there some similar way to track Task status with new API?

@bhoriuchi
Copy link
Owner

yeah, for currently supported operations that return tasks you should be able to pass the { async: false } option

see https://github.com/bhoriuchi/vsphere-connect/blob/master/src/methods/destroy.js#L12-L14

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

2 participants