Optional. Maximum total number of times a driver can be restarted as a
result of the driver exiting with a non-zero code. After the maximum number
is reached, the job will be reported as failed.
Maximum value is 240.
Note: Currently, this restartable job option is
not supported in Dataproc
workflow
templates.
[[["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-07 UTC."],[[["\u003cp\u003eThis webpage provides reference documentation for the \u003ccode\u003eJobScheduling\u003c/code\u003e class within the Google Cloud Dataproc v1 API, specifically for .NET developers.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eJobScheduling\u003c/code\u003e class offers options for configuring job scheduling behavior, including managing job restarts and failures.\u003c/p\u003e\n"],["\u003cp\u003eThe documentation outlines the latest version (5.17.0) and a history of previous versions for the \u003ccode\u003eJobScheduling\u003c/code\u003e class, spanning from 3.1.0 to 5.17.0.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eJobScheduling\u003c/code\u003e class has two properties related to failure management: \u003ccode\u003eMaxFailuresPerHour\u003c/code\u003e (maximum restarts per hour) and \u003ccode\u003eMaxFailuresTotal\u003c/code\u003e (maximum total restarts).\u003c/p\u003e\n"],["\u003cp\u003eThe documentation also includes the \u003ccode\u003eJobScheduling\u003c/code\u003e class's inheritance, implementation, constructors, and the namespace and assembly it belongs to.\u003c/p\u003e\n"]]],[],null,["# Google Cloud Dataproc v1 API - Class JobScheduling (5.20.0)\n\nVersion latestkeyboard_arrow_down\n\n- [5.20.0 (latest)](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.JobScheduling)\n- [5.19.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/5.19.0/Google.Cloud.Dataproc.V1.JobScheduling)\n- [5.18.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/5.18.0/Google.Cloud.Dataproc.V1.JobScheduling)\n- [5.17.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/5.17.0/Google.Cloud.Dataproc.V1.JobScheduling)\n- [5.16.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/5.16.0/Google.Cloud.Dataproc.V1.JobScheduling)\n- [5.15.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/5.15.0/Google.Cloud.Dataproc.V1.JobScheduling)\n- [5.14.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/5.14.0/Google.Cloud.Dataproc.V1.JobScheduling)\n- [5.13.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/5.13.0/Google.Cloud.Dataproc.V1.JobScheduling)\n- [5.12.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/5.12.0/Google.Cloud.Dataproc.V1.JobScheduling)\n- [5.11.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/5.11.0/Google.Cloud.Dataproc.V1.JobScheduling)\n- [5.10.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/5.10.0/Google.Cloud.Dataproc.V1.JobScheduling)\n- [5.9.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/5.9.0/Google.Cloud.Dataproc.V1.JobScheduling)\n- [5.8.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/5.8.0/Google.Cloud.Dataproc.V1.JobScheduling)\n- [5.7.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/5.7.0/Google.Cloud.Dataproc.V1.JobScheduling)\n- [5.6.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/5.6.0/Google.Cloud.Dataproc.V1.JobScheduling)\n- [5.5.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/5.5.0/Google.Cloud.Dataproc.V1.JobScheduling)\n- [5.4.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/5.4.0/Google.Cloud.Dataproc.V1.JobScheduling)\n- [5.3.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/5.3.0/Google.Cloud.Dataproc.V1.JobScheduling)\n- [5.2.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/5.2.0/Google.Cloud.Dataproc.V1.JobScheduling)\n- [5.1.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/5.1.0/Google.Cloud.Dataproc.V1.JobScheduling)\n- [5.0.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/5.0.0/Google.Cloud.Dataproc.V1.JobScheduling)\n- [4.0.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/4.0.0/Google.Cloud.Dataproc.V1.JobScheduling)\n- [3.4.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/3.4.0/Google.Cloud.Dataproc.V1.JobScheduling)\n- [3.3.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/3.3.0/Google.Cloud.Dataproc.V1.JobScheduling)\n- [3.2.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/3.2.0/Google.Cloud.Dataproc.V1.JobScheduling)\n- [3.1.0](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/3.1.0/Google.Cloud.Dataproc.V1.JobScheduling) \n\n public sealed class JobScheduling : IMessage\u003cJobScheduling\u003e, IEquatable\u003cJobScheduling\u003e, IDeepCloneable\u003cJobScheduling\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Google Cloud Dataproc v1 API class JobScheduling.\n\nJob scheduling options. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e JobScheduling \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[JobScheduling](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.JobScheduling), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[JobScheduling](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.JobScheduling), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[JobScheduling](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1.JobScheduling), [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.Dataproc.V1](/dotnet/docs/reference/Google.Cloud.Dataproc.V1/latest/Google.Cloud.Dataproc.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.Dataproc.V1.dll\n\nConstructors\n------------\n\n### JobScheduling()\n\n public JobScheduling()\n\n### JobScheduling(JobScheduling)\n\n public JobScheduling(JobScheduling other)\n\nProperties\n----------\n\n### MaxFailuresPerHour\n\n public int MaxFailuresPerHour { get; set; }\n\nOptional. Maximum number of times per hour a driver can be restarted as\na result of driver exiting with non-zero code before job is\nreported failed.\n\nA job might be reported as thrashing if the driver exits with a non-zero\ncode four times within a 10-minute window.\n\nMaximum value is 10.\n\n**Note:** This restartable job option is not supported in Dataproc\n[workflow templates](https://cloud.google.com/dataproc/docs/concepts/workflows/using-workflows#adding_jobs_to_a_template).\n\n### MaxFailuresTotal\n\n public int MaxFailuresTotal { get; set; }\n\nOptional. Maximum total number of times a driver can be restarted as a\nresult of the driver exiting with a non-zero code. After the maximum number\nis reached, the job will be reported as failed.\n\nMaximum value is 240.\n\n**Note:** Currently, this restartable job option is\nnot supported in Dataproc\n[workflow\ntemplates](https://cloud.google.com/dataproc/docs/concepts/workflows/using-workflows#adding_jobs_to_a_template)."]]