aee98cea97ea0fb49f053c2212e9294dd121ca1b,perfkitbenchmarker/providers/gcp/gce_virtual_machine.py,GceVirtualMachine,UpdateInterruptibleVmStatus,#GceVirtualMachine#,775
Before Change
stdout, _, _ = gcloud_command.Issue()
self.early_termination = any(
operation["operationType"] == "compute.instances.preempted"
for operation in json.loads(stdout) )
def IsInterruptible(self):
Returns whether this vm is an interruptible vm (spot vm).
After Change
stdout, stderr, return_code = self.RemoteCommandWithReturnCode(
_CHECK_INTERRUPT_CMD)
if return_code:
logging.error("Checking Interrupt Error: %s", stderr)
else:
self.spot_early_termination = stdout.strip() == _SHUTDOWN_MARKER
def IsInterruptible(self):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances Project Name: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: aee98cea97ea0fb49f053c2212e9294dd121ca1b
Time: 2020-06-24
Author: tohaowu@google.com
File Name: perfkitbenchmarker/providers/gcp/gce_virtual_machine.py
Class Name: GceVirtualMachine
Method Name: UpdateInterruptibleVmStatus
Project Name: VOLTTRON/volttron
Commit Name: cce94fc46f46d13dbca60772c39d310e7e5bc0b8
Time: 2019-10-28
Author: craig.allwardt@pnnl.gov
File Name: volttron/platform/vip/routingservice.py
Class Name: RoutingService
Method Name: handle_subsystem
Project Name: streamlit/streamlit
Commit Name: bd163732d8c83ad9c643f319d648cccf6dbc185b
Time: 2018-06-18
Author: adrien.g.treuille@gmail.com
File Name: lib/streamlit/proxy/ClientWebSocket.py
Class Name: ClientWebSocket
Method Name: on_message