AutoPauseSettings Class
Auto pause settings for Synapse Spark compute.
- Inheritance
-
builtins.objectAutoPauseSettings
Constructor
AutoPauseSettings(*, delay_in_minutes: int | None = None, enabled: bool | None = None)
Keyword-Only Parameters
Name | Description |
---|---|
delay_in_minutes
|
The time delay in minutes before pausing cluster. |
enabled
|
Specifies if auto-pause is enabled. |
Examples
Configuring AutoPauseSettings on SynapseSparkCompute.
from azure.ai.ml.entities import (
AutoPauseSettings,
AutoScaleSettings,
IdentityConfiguration,
ManagedIdentityConfiguration,
SynapseSparkCompute,
)
synapse_compute = SynapseSparkCompute(
name="synapse_name",
resource_id="/subscriptions/subscription/resourceGroups/group/providers/Microsoft.Synapse/workspaces/workspace/bigDataPools/pool",
identity=IdentityConfiguration(
type="UserAssigned",
user_assigned_identities=[
ManagedIdentityConfiguration(
resource_id="/subscriptions/subscription/resourceGroups/group/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity"
)
],
),
scale_settings=AutoScaleSettings(min_node_count=1, max_node_count=3, enabled=True),
auto_pause_settings=AutoPauseSettings(delay_in_minutes=10, enabled=True),
)
Spolupracujte s námi na GitHubu
Zdroj tohoto obsahu najdete na GitHubu, kde můžete také vytvářet a kontrolovat problémy a žádosti o přijetí změn. Další informace najdete v našem průvodci pro přispěvatele.
Azure SDK for Python