Uploaded image for project: 'CDAP'
  1. CDAP
  2. CDAP-17151

Preview log status API should include submit time in response

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.3.0, 6.1.4, 6.2.2
    • Component/s: None
    • Labels:
      None
    • Rank:
      1|i00zkf:

      Description

      UI uses this API to get the status and the start time if a user is on the preview page and they refresh the page. The UI uses res.startTime to reset the preview timer. Right now, res.startTime is undefined if the pipeline is in the INIT or WAITING state because startTime is recorded on run start (when the preview is in RUNNING state). However, the UI shows the timer starting when the user clicks "Run" (when the run is initially queued), which is not consistent with the startTime recorded by the backend. This means that the UI will incorrectly reset the timer if the user refreshes the UI, because it does not know the necessary start time.

      Proposal: Include submit time (time when the preview run is initially submitted) in addition to the start time in the backend response. That way the UI can always use submitTime to correctly and consistently render the timer in Preview.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                sagar Sagar Kapare
                Reporter:
                yuki Yuki Jung
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: