ray.serve.config.AutoscalingConfig.serialize_policy#

AutoscalingConfig.serialize_policy() None[source]#

Serialize policy with cloudpickle.

Import the policy if it’s passed in as a string import path. Then cloudpickle the policy and set serialized_policy_def if it’s empty.