This is an automated email from the ASF dual-hosted git repository.

pingsutw pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/submarine.git


The following commit(s) were added to refs/heads/master by this push:
     new ef5e32b  SUBMARINE-1233. Notebook auto-reload
ef5e32b is described below

commit ef5e32b5aab0542994fb05f5c3bc746dcdff2b1c
Author: jeff-901 <b07901...@ntu.edu.tw>
AuthorDate: Wed Mar 23 12:26:58 2022 +0800

    SUBMARINE-1233. Notebook auto-reload
    
    ### What is this PR for?
    Notebook auto-reload too frequently. Change the reload rate to 10 
sec/request
    
    ### What type of PR is it?
    Bug Fix
    
    ### Todos
    
    ### What is the Jira issue?
    https://issues.apache.org/jira/browse/SUBMARINE-1233
    
    ### How should this be tested?
    
    ### Screenshots (if appropriate)
    
    ### Questions:
    * Do the license files need updating? No
    * Are there breaking changes for older versions? No
    * Does this need new documentation? No
    
    Author: jeff-901 <b07901...@ntu.edu.tw>
    
    Signed-off-by: Kevin <pings...@apache.org>
    
    Closes #909 from jeff-901/SUBMARINE-1233 and squashes the following commits:
    
    8045841e [jeff-901] edit reload rate
---
 .../pages/workbench/notebook/notebook-home/notebook-home.component.ts   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/submarine-workbench/workbench-web/src/app/pages/workbench/notebook/notebook-home/notebook-home.component.ts
 
b/submarine-workbench/workbench-web/src/app/pages/workbench/notebook/notebook-home/notebook-home.component.ts
index 33e6835..9522d85 100644
--- 
a/submarine-workbench/workbench-web/src/app/pages/workbench/notebook/notebook-home/notebook-home.component.ts
+++ 
b/submarine-workbench/workbench-web/src/app/pages/workbench/notebook/notebook-home/notebook-home.component.ts
@@ -52,7 +52,7 @@ export class NotebookHomeComponent implements OnInit, 
OnDestroy {
       this.userId = res.id;
     });
 
-    const resourceSub = interval(1000).subscribe(() => {
+    const resourceSub = interval(10000).subscribe(() => {
       this.notebookService.fetchNotebookList(this.userId).subscribe((res) => {
         if (!isEqual(this.notebookList, res)) {
           this.notebookList = res;

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

Reply via email to