yr.InstanceProxy

Contents

yr.InstanceProxy#

class yr.InstanceProxy(instance_id, class_descriptor, class_methods, base_cls, function_id, need_order=True, group_name='', is_async=False, instance_name=None, namespace=None, code_ref=None, bypass_datasystem_default=False)[source]#

Bases: object

Use to decorate a user class.

Initialize the InstanceProxy instance.

Attributes

checkpoint_id

The checkpoint_id associated with this instance.

real_id

The real instance ID assigned by the runtime.

snapstart_info

The restore metadata returned when this instance was created via snapstart().

Methods

__init__

Initialize the InstanceProxy instance.

delete_checkpoint

Delete a checkpoint.

deserialization_

Deserialization to rebuild instance proxy.

get_function_group_handler

Get the FunctionGroupHandler.

is_activate

Return the instance status.

list_checkpoints

List all checkpoints for this instance's function type.

serialization_

Serialization of instance proxy.

snapshot

Create instance snapshot.

snapstart

Start a new instance from a snapshot.

terminate

Terminate the instance.