Optional. Indicates if the job should retry for internal errors after the
job starts running. If true, overrides
Scheduling.restart_job_on_worker_restart to false.
Optional. This is the maximum duration that a job will wait for the
requested resources to be provisioned if the scheduling strategy is set to
[Strategy.DWS_FLEX_START].
If set to 0, the job will wait indefinitely. The default is 24 hours.
public bool RestartJobOnWorkerRestart { get; set; }
Restarts the entire CustomJob if a worker gets restarted.
This feature can be used by distributed training jobs that are not
resilient to workers leaving and joining a job.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eScheduling\u003c/code\u003e class in the Vertex AI v1beta1 API manages queuing and scheduling parameters for custom jobs.\u003c/p\u003e\n"],["\u003cp\u003eIt offers properties to control job behavior, such as \u003ccode\u003eDisableRetries\u003c/code\u003e to prevent retries for internal errors, and \u003ccode\u003eRestartJobOnWorkerRestart\u003c/code\u003e to enable automatic job restarts if a worker fails.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eMaxWaitDuration\u003c/code\u003e property specifies how long a job will wait for resource provisioning, with a default of 24 hours, and the \u003ccode\u003eTimeout\u003c/code\u003e property defines the maximum duration a job can run, with a default of 7 days.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eStrategy\u003c/code\u003e property determines the type of scheduling method to be used.\u003c/p\u003e\n"]]],[],null,["# Vertex AI v1beta1 API - Class Scheduling (1.0.0-beta47)\n\nVersion latestkeyboard_arrow_down\n\n- [1.0.0-beta47 (latest)](/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.Scheduling)\n- [1.0.0-beta46](/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/1.0.0-beta46/Google.Cloud.AIPlatform.V1Beta1.Scheduling) \n\n public sealed class Scheduling : IMessage\u003cScheduling\u003e, IEquatable\u003cScheduling\u003e, IDeepCloneable\u003cScheduling\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Vertex AI v1beta1 API class Scheduling.\n\nAll parameters related to queuing and scheduling of custom jobs. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e Scheduling \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[Scheduling](/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.Scheduling), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[Scheduling](/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.Scheduling), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[Scheduling](/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.Scheduling), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.AIPlatform.V1Beta1](/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1)\n\nAssembly\n--------\n\nGoogle.Cloud.AIPlatform.V1Beta1.dll\n\nConstructors\n------------\n\n### Scheduling()\n\n public Scheduling()\n\n### Scheduling(Scheduling)\n\n public Scheduling(Scheduling other)\n\nProperties\n----------\n\n### DisableRetries\n\n public bool DisableRetries { get; set; }\n\nOptional. Indicates if the job should retry for internal errors after the\njob starts running. If true, overrides\n`Scheduling.restart_job_on_worker_restart` to false.\n\n### MaxWaitDuration\n\n public Duration MaxWaitDuration { get; set; }\n\nOptional. This is the maximum duration that a job will wait for the\nrequested resources to be provisioned if the scheduling strategy is set to\n\\[Strategy.DWS_FLEX_START\\].\nIf set to 0, the job will wait indefinitely. The default is 24 hours.\n\n### RestartJobOnWorkerRestart\n\n public bool RestartJobOnWorkerRestart { get; set; }\n\nRestarts the entire CustomJob if a worker gets restarted.\nThis feature can be used by distributed training jobs that are not\nresilient to workers leaving and joining a job.\n\n### Strategy\n\n public Scheduling.Types.Strategy Strategy { get; set; }\n\nOptional. This determines which type of scheduling strategy to use.\n\n### Timeout\n\n public Duration Timeout { get; set; }\n\nThe maximum job running time. The default is 7 days."]]