yr.InvokeOptions.instance_priority#
- InvokeOptions.instance_priority: int = 0#
The priority of an instance is determined by its value. The higher the value, the higher the priority. A high-priority instance can preempt a low-priority instance that is configured as preempted_allowed = True. It only takes effect in priority scenarios (scenarios where the maxPriority configuration item of YuanRong deployment is greater than
0). The minimum value of instance_priority is0and the maximum value is the maxPriority configuration of YuanRong deployment. The default is0.