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
@@ -133,13 +134,43 @@ export default class DaprClient {
133
134
awaitthis.daprClient.stop();
134
135
}
135
136
137
+
asyncawaitSidecarStarted(): Promise<void>{
138
+
// 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
139
+
// if we are using actors we will change this to 4s to let the placement tables update
140
+
letisHealthy=false;
141
+
letisHealthyRetryCount=0;
142
+
constisHealthyMaxRetryCount=60;// 1s startup delay and we try max for 60s
143
+
144
+
console.log(`[Dapr-JS][Client] Awaiting Sidecar to be Started`);
145
+
while(!isHealthy){
146
+
console.log(`[Dapr-JS][Client] Waiting till Dapr Sidecar Started (#${isHealthyRetryCount})`);
// 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
108
-
// if we are using actors we will change this to 4s to let the placement tables update
109
-
letisHealthy=false;
110
-
letisHealthyRetryCount=0;
111
-
constisHealthyMaxRetryCount=60;// 1s startup delay and we try max for 60s
112
-
113
-
console.log(`[Dapr-JS][Client] Awaiting Sidecar to be Started`);
114
-
while(!isHealthy){
115
-
console.log(`[Dapr-JS][Client] Waiting till Dapr Sidecar Started (#${isHealthyRetryCount})`);
// 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
108
-
// if we are using actors we will change this to 4s to let the placement tables update
109
-
letisHealthy=false;
110
-
letisHealthyRetryCount=0;
111
-
constisHealthyMaxRetryCount=60;// 1s startup delay and we try max for 60s
112
-
113
-
console.log(`[Dapr-JS][Client] Awaiting Sidecar to be Started`);
114
-
while(!isHealthy){
115
-
console.log(`[Dapr-JS][Client] Waiting till Dapr Sidecar Started (#${isHealthyRetryCount})`);
// 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
115
-
// if we are using actors we will change this to 4s to let the placement tables update
116
-
letisHealthy=false;
117
-
letisHealthyRetryCount=0;
118
-
constisHealthyMaxRetryCount=60;// 1s startup delay and we try max for 60s
119
-
120
-
console.log(`[Dapr-JS][Server] Awaiting Sidecar to be Started`);
121
-
while(!isHealthy){
122
-
console.log(`[Dapr-JS][Server] Waiting till Dapr Sidecar Started (#${isHealthyRetryCount})`);
0 commit comments