Skip to content

Commit

Permalink
Add jobRunId to JobInfo
Browse files Browse the repository at this point in the history
This PR adds a jobRunId field to JobInfo. When a multi-task job is created, the runId in JobInfo represents the task run ID, and jobRunId (retrieved from multitaskParentRunId in the CommandContext) represents the job run ID.

GitOrigin-RevId: 1bd0027983de4af93e1e07e5237ac1c286853da8
  • Loading branch information
linmagit authored and allisonport-db committed May 30, 2023
1 parent 6eb78c2 commit df9d74d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1041,6 +1041,7 @@ case class CommitInfo(
case class JobInfo(
jobId: String,
jobName: String,
jobRunId: String,
runId: String,
jobOwnerId: String,
triggerType: String)
Expand All @@ -1051,6 +1052,7 @@ object JobInfo {
JobInfo(
jobId,
context.get("jobName").orNull,
context.get("multitaskParentRunId").orNull,
context.get("runId").orNull,
context.get("jobOwnerId").orNull,
context.get("jobTriggerType").orNull)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1442,6 +1442,7 @@ trait DescribeDeltaHistorySuiteBase
StructType(Seq(
StructField("jobId", StringType, nullable = true),
StructField("jobName", StringType, nullable = true),
StructField("jobRunId", StringType, nullable = true),
StructField("runId", StringType, nullable = true),
StructField("jobOwnerId", StringType, nullable = true),
StructField("triggerType", StringType, nullable = true))),
Expand Down

0 comments on commit df9d74d

Please sign in to comment.