IScheduler.CancelJob Method

Definition

Overloads

CancelJob(Int32, String)

Cancels the specified job and provides a message to the user that explains why you canceled the job.

CancelJob(Int32, String, Boolean)

Cancels the specified job and provides a message to the user that explains why you canceled the job, and optionally forces the job to stop immediately. When you force the job to stop immediately, this method ignores the grace period for canceling the tasks in the job, and does not run the node release task for the job.

CancelJob(Int32, String, Boolean, Boolean)

CancelJob(Int32, String)

Cancels the specified job and provides a message to the user that explains why you canceled the job.

public void CancelJob (int jobId, string message);
abstract member CancelJob : int * string -> unit
Public Sub CancelJob (jobId As Integer, message As String)

Parameters

jobId
Int32
message
String

Applies to

CancelJob(Int32, String, Boolean)

Cancels the specified job and provides a message to the user that explains why you canceled the job, and optionally forces the job to stop immediately. When you force the job to stop immediately, this method ignores the grace period for canceling the tasks in the job, and does not run the node release task for the job.

public void CancelJob (int jobId, string message, bool isForced);
abstract member CancelJob : int * string * bool -> unit
Public Sub CancelJob (jobId As Integer, message As String, isForced As Boolean)

Parameters

jobId
Int32
message
String
isForced
Boolean

Applies to

CancelJob(Int32, String, Boolean, Boolean)

public void CancelJob (int jobId, string message, bool isForced, bool isGraceful);
abstract member CancelJob : int * string * bool * bool -> unit
Public Sub CancelJob (jobId As Integer, message As String, isForced As Boolean, isGraceful As Boolean)

Parameters

jobId
Int32
message
String
isForced
Boolean
isGraceful
Boolean

Applies to