Skip to content

Commit d026505

Browse files
committed
improve user feedback on service state
1 parent 37602a2 commit d026505

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

services/web/client/source/class/osparc/component/service/NodeStatus.js

+8
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,10 @@ qx.Class.define("osparc.component.service.NodeStatus", {
6363
return this.tr("Starting...");
6464
} else if (status === "pending") {
6565
return this.tr("Pending...");
66+
} else if (status === "pulling") {
67+
return this.tr("Pulling...");
68+
} else if (status === "connecting") {
69+
return this.tr("Connecting...");
6670
}
6771
return this.tr("Idle");
6872
}
@@ -78,6 +82,10 @@ qx.Class.define("osparc.component.service.NodeStatus", {
7882
return "@FontAwesome5Solid/circle-notch/12";
7983
} else if (status === "pending") {
8084
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";
8189
}
8290
return "@FontAwesome5Solid/check/12";
8391
},

services/web/client/source/class/osparc/data/model/Node.js

+8-2
Original file line numberDiff line numberDiff line change
@@ -931,13 +931,18 @@ qx.Class.define("osparc.data.model.Node", {
931931
__onNodeState: function(data) {
932932
const serviceState = data["service_state"];
933933
switch (serviceState) {
934-
case "starting":
935-
case "pulling": {
934+
case "starting": {
936935
this.setInteractiveStatus("starting");
937936
const interval = 5000;
938937
qx.event.Timer.once(() => this.__nodeState(), this, interval);
939938
break;
940939
}
940+
case "pulling": {
941+
this.setInteractiveStatus("pulling");
942+
const interval = 5000;
943+
qx.event.Timer.once(() => this.__nodeState(), this, interval);
944+
break;
945+
}
941946
case "pending": {
942947
this.setInteractiveStatus("pending");
943948
const interval = 10000;
@@ -1028,6 +1033,7 @@ qx.Class.define("osparc.data.model.Node", {
10281033
}, this);
10291034
pingRequest.addListenerOnce("fail", e => {
10301035
const error = e.getTarget().getResponse();
1036+
this.setInteractiveStatus("connecting");
10311037
console.log("service not ready yet, waiting... " + error);
10321038
const interval = 1000;
10331039
qx.event.Timer.once(() => this.__waitForServiceReady(srvUrl), this, interval);

0 commit comments

Comments
 (0)