yr.config.GroupOptions

Contents

yr.config.GroupOptions#

class yr.config.GroupOptions(timeout: int = -1, same_lifecycle: bool = True, strategy: str = '')[source]#

Bases: object

Configuration options for grouped instance scheduling.

The GroupOptions structure defines parameters for the lifecycle management of grouped instances, including timeout settings for rescheduling when kernel resources are insufficient.

Attributes

same_lifecycle

Whether to enable the fate-sharing configuration for grouped instances.

strategy

The strategy to create the group None: No strategy.

timeout

Timeout for rescheduling when kernel resources are insufficient, in seconds.

Methods