Skip to content

Commit

Permalink
Add the UID of the job as a logging field.
Browse files Browse the repository at this point in the history
  • Loading branch information
jlewi committed Mar 25, 2018
1 parent 1b649e2 commit 86bfcaf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/trainer/training.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ func initJob(kubeCli kubernetes.Interface, tfJobClient tfjobclient.Interface, re
// We use job to match the key used in controller.go
// In controller.go we log the key used with the workqueue.
"job": job.ObjectMeta.Namespace + "/" + job.ObjectMeta.Name,
"uid": job.ObjectMeta.UID,
}),
}

Expand Down

0 comments on commit 86bfcaf

Please sign in to comment.