File tree 2 files changed +16
-2
lines changed
services/web/client/source/class/osparc
2 files changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -63,6 +63,10 @@ qx.Class.define("osparc.component.service.NodeStatus", {
63
63
return this . tr ( "Starting..." ) ;
64
64
} else if ( status === "pending" ) {
65
65
return this . tr ( "Pending..." ) ;
66
+ } else if ( status === "pulling" ) {
67
+ return this . tr ( "Pulling..." ) ;
68
+ } else if ( status === "connecting" ) {
69
+ return this . tr ( "Connecting..." ) ;
66
70
}
67
71
return this . tr ( "Idle" ) ;
68
72
}
@@ -78,6 +82,10 @@ qx.Class.define("osparc.component.service.NodeStatus", {
78
82
return "@FontAwesome5Solid/circle-notch/12" ;
79
83
} else if ( status === "pending" ) {
80
84
return "@FontAwesome5Solid/circle-notch/12" ;
85
+ } else if ( status === "pulling" ) {
86
+ return "@FontAwesome5Solid/circle-notch/12" ;
87
+ } else if ( status === "connecting" ) {
88
+ return "@FontAwesome5Solid/circle-notch/12" ;
81
89
}
82
90
return "@FontAwesome5Solid/check/12" ;
83
91
} ,
Original file line number Diff line number Diff line change @@ -931,13 +931,18 @@ qx.Class.define("osparc.data.model.Node", {
931
931
__onNodeState : function ( data ) {
932
932
const serviceState = data [ "service_state" ] ;
933
933
switch ( serviceState ) {
934
- case "starting" :
935
- case "pulling" : {
934
+ case "starting" : {
936
935
this . setInteractiveStatus ( "starting" ) ;
937
936
const interval = 5000 ;
938
937
qx . event . Timer . once ( ( ) => this . __nodeState ( ) , this , interval ) ;
939
938
break ;
940
939
}
940
+ case "pulling" : {
941
+ this . setInteractiveStatus ( "pulling" ) ;
942
+ const interval = 5000 ;
943
+ qx . event . Timer . once ( ( ) => this . __nodeState ( ) , this , interval ) ;
944
+ break ;
945
+ }
941
946
case "pending" : {
942
947
this . setInteractiveStatus ( "pending" ) ;
943
948
const interval = 10000 ;
@@ -1028,6 +1033,7 @@ qx.Class.define("osparc.data.model.Node", {
1028
1033
} , this ) ;
1029
1034
pingRequest . addListenerOnce ( "fail" , e => {
1030
1035
const error = e . getTarget ( ) . getResponse ( ) ;
1036
+ this . setInteractiveStatus ( "connecting" ) ;
1031
1037
console . log ( "service not ready yet, waiting... " + error ) ;
1032
1038
const interval = 1000 ;
1033
1039
qx . event . Timer . once ( ( ) => this . __waitForServiceReady ( srvUrl ) , this , interval ) ;
You can’t perform that action at this time.
0 commit comments