REST API: Gracefully stop cloud agent instance
Answered
Hello,
I use DELETE request to the cloud/instances endpoint in order to stop cloud instances after VMWare template update.
But it seems like this endpoint is only able to stop agent forcefully, regardless of currently running builds.
Is there a way to stop cloud agent instance in the same manner as we do it in the UI (I mean to stop the agent only after current build finishes)?
Please sign in to leave a comment.
Hello Alexey,
Thank you for reporting the issue. I have been able to reproduce it and have just created a new bug on our issue tracker with a request to either allow extra parameter for a better control over agent stop, or a separate method which would wait until stopping the agent: https://youtrack.jetbrains.com/issue/TW-68444
Please feel free to vote/comment as you see fit.