You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// We need to call the Singleton to start listening on the port, else Dapr will not pick it up correctly
100
103
// Dapr will probe every 50ms to see if we are listening on our port: https://github.com/dapr/dapr/blob/a43712c97ead550ca2f733e9f7e7769ecb195d8b/pkg/runtime/runtime.go#L1694
101
104
// if we are using actors we will change this to 4s to let the placement tables update
102
-
console.log(`Letting Dapr pick-up the server (${this.serverStartupDelay}ms)`);
103
-
awaitNodeJSUtils.sleep(this.serverStartupDelay);
105
+
letisHealthy=false;
106
+
letisHealthyRetryCount=0;
107
+
letisHealthyMaxRetryCount=60;// 1s startup delay and we try max for 60s
108
+
109
+
console.log(`[Dapr-JS] Letting Dapr pick-up the server (Maximum 60s wait time)`);
110
+
while(!isHealthy){
111
+
console.log(`[Dapr-JS] - Waiting till Dapr Started (#${isHealthyRetryCount})`);
0 commit comments