You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@beam.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2022/01/10 11:49:00 UTC

[jira] [Work logged] (BEAM-13557) [Playground] Show how long it took the pipeline to run in the UI

     [ https://issues.apache.org/jira/browse/BEAM-13557?focusedWorklogId=706025&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-706025 ]

ASF GitHub Bot logged work on BEAM-13557:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 10/Jan/22 11:48
            Start Date: 10/Jan/22 11:48
    Worklog Time Spent: 10m 
      Work Description: ElessarST commented on a change in pull request #16363:
URL: https://github.com/apache/beam/pull/16363#discussion_r781123538



##########
File path: playground/frontend/lib/pages/playground/states/playground_state.dart
##########
@@ -156,6 +166,39 @@ class PlaygroundState with ChangeNotifier {
       status: RunCodeStatus.finished,
       output: _selectedExample!.outputs,
     );
+    _executionTime?.close();
     notifyListeners();
   }
+
+  StreamController<int> _createExecutionTimeStream() {
+    StreamController<int>? streamController;
+    Timer? timer;
+    Duration timerInterval = const Duration(milliseconds: kExecutionTimeUpdate);
+    int ms = 0;
+
+    void stopTimer() {
+      if (timer != null) {
+        timer?.cancel();

Review comment:
       question mark is required, because timer is not local variable




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Issue Time Tracking
-------------------

    Worklog Id:     (was: 706025)
    Time Spent: 0.5h  (was: 20m)

> [Playground] Show how long it took the pipeline to run in the UI
> ----------------------------------------------------------------
>
>                 Key: BEAM-13557
>                 URL: https://issues.apache.org/jira/browse/BEAM-13557
>             Project: Beam
>          Issue Type: Task
>          Components: beam-playground
>            Reporter: Artur Khanin
>            Assignee: Aydar Farrakhov
>            Priority: P2
>              Labels: beam-playground-frontend, beam-playground-sprint-6
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> Need to add a timer to show users how long current code processing takes.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)