/// <summary> /// Enables the specified Job, allowing new Tasks to run. /// </summary> /// <remarks> /// When you call this API, the Batch service sets a disabled Job to the /// enabling state. After the this operation is completed, the Job moves to the /// active state, and scheduling of new Tasks under the Job resumes. The Batch /// service does not allow a Task to remain in the active state for more than /// 180 days. Therefore, if you enable a Job containing active Tasks which were /// added more than 180 days ago, those Tasks will not run. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='jobId'> /// The ID of the Job to enable. /// </param> /// <param name='jobEnableOptions'> /// Additional parameters for the operation /// </param> public static JobEnableHeaders Enable(this IJobOperations operations, string jobId, JobEnableOptions jobEnableOptions = default(JobEnableOptions)) { return(operations.EnableAsync(jobId, jobEnableOptions).GetAwaiter().GetResult()); }