af164f572888a7ebdd2e6d297f6e35d98d598e53,perfkitbenchmarker/providers/gcp/gce_virtual_machine.py,GceVirtualMachine,UpdateInterruptibleVmStatus,#GceVirtualMachine#,862
Before Change
// VM marked as interrupted, stop checking
break
else:
time.sleep(1)
def IsInterruptible(self):
Returns whether this vm is an interruptible vm (spot vm).
After Change
return
if self.spot_early_termination: // VM already marked as preemptedor
return
vm_without_zone = copy.copy(self)
vm_without_zone.zone = None
gcloud_command = util.GcloudCommand(vm_without_zone, "compute",
"operations", "list")
gcloud_command.flags["filter"] = f"targetLink.scope():{self.name}"
gcloud_command.flags["zones"] = self.zone
stdout, _, _ = gcloud_command.Issue(suppress_warning=True)
self.spot_early_termination = any(
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances Project Name: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: af164f572888a7ebdd2e6d297f6e35d98d598e53
Time: 2021-03-15
Author: tohaowu@google.com
File Name: perfkitbenchmarker/providers/gcp/gce_virtual_machine.py
Class Name: GceVirtualMachine
Method Name: UpdateInterruptibleVmStatus
Project Name: ray-project/ray
Commit Name: ada58abcd92cd7b38cf1c0ee1525d52e388558f9
Time: 2020-10-02
Author: swang@cs.berkeley.edu
File Name: python/ray/tests/test_object_spilling.py
Class Name:
Method Name: test_spill_remote_object
Project Name: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: 6a3988c73af1b0fc8c9a880eb26f8606ebd32ad2
Time: 2015-07-01
Author: carlos.torres@rackspace.com
File Name: perfkitbenchmarker/rackspace/rackspace_virtual_machine.py
Class Name: RackspaceVirtualMachine
Method Name: _Exists