你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

JobExecutionInformation.TerminateReason 属性

定义

获取或设置描述作业结束原因的字符串。

[Newtonsoft.Json.JsonProperty(PropertyName="terminateReason")]
public string TerminateReason { get; set; }
[<Newtonsoft.Json.JsonProperty(PropertyName="terminateReason")>]
member this.TerminateReason : string with get, set
Public Property TerminateReason As String

属性值

属性
Newtonsoft.Json.JsonPropertyAttribute

注解

仅当作业处于已完成状态时,才会设置此属性。 如果 Batch 服务终止作业,则会将原因设置为:JMComplete - 作业管理器任务已完成,killJobOnCompletion 设置为 true。 MaxWallClockTimeExpiry - 作业达到其 maxWallClockTime 约束。 TerminateJobSchedule - 作业作为计划的一部分运行,计划已终止。 AllTasksComplete - 作业的 onAllTasksComplete 属性设置为 terminatejob,并且作业中的所有任务都已完成。 TaskFailed - 作业的 onTaskFailure 属性设置为 performExitOptionsJobAction,作业中的任务失败,退出条件指定 jobAction 为 terminatejob。 任何其他字符串都是在调用“终止作业”操作时指定的用户定义的原因。

适用于