Github user andrewor14 commented on a diff in the pull request:

    https://github.com/apache/spark/pull/8791#discussion_r40159933
  
    --- Diff: 
streaming/src/main/scala/org/apache/spark/streaming/scheduler/JobScheduler.scala
 ---
    @@ -190,10 +191,20 @@ class JobScheduler(val ssc: StreamingContext) extends 
Logging {
       }
     
       private class JobHandler(job: Job) extends Runnable with Logging {
    +    import JobScheduler._
    +
         def run() {
    -      ssc.sc.setLocalProperty(JobScheduler.BATCH_TIME_PROPERTY_KEY, 
job.time.milliseconds.toString)
    -      ssc.sc.setLocalProperty(JobScheduler.OUTPUT_OP_ID_PROPERTY_KEY, 
job.outputOpId.toString)
           try {
    +        val formattedTime = UIUtils.formatBatchTime(
    +          job.time.milliseconds, ssc.graph.batchDuration.milliseconds, 
showYYYYMMSS = false)
    +        val batchUrl = s"/streaming/batch/?id=${job.time.milliseconds}"
    +        val batchLinkText = s"[output operation ${job.outputOpId}, batch 
time ${formattedTime}]"
    +
    +        ssc.sc.setJobDescription(
    +          s"""Streaming job from <a href="$batchUrl">$batchLinkText</a>""")
    --- End diff --
    
    this is assuming the UI is the only consumer of this? I suppose that's OK 
since no one uses `JobLogger` anymore


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to