in google-cloud-server/src/main/kotlin/jetbrains/buildServer/clouds/google/GoogleCloudImage.kt [119:132]
override fun restartInstance(instance: GoogleCloudInstance) {
instance.status = InstanceStatus.RESTARTING
launch {
try {
LOG.info("Restarting virtual machine ${instance.name}")
myApiConnector.restartVm(instance)
} catch (e: Throwable) {
LOG.warnAndDebugDetails(e.message, e)
instance.status = InstanceStatus.ERROR
instance.updateErrors(TypedCloudErrorInfo.fromException(e))
}
}
}