Skip to content

Commit 1e987c0

Browse files
authored
Wait for Dapr to be Healthy
Signed-off-by: Deepanshu Agarwal <[email protected]>
1 parent e8d195a commit 1e987c0

File tree

1 file changed

+1
-0
lines changed
  • configuration/javascript/sdk/order-processor

1 file changed

+1
-0
lines changed

configuration/javascript/sdk/order-processor/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ const CONFIGURATION_ITEMS = ["orderId1", "orderId2"];
1010

1111
async function main() {
1212
const client = new DaprClient({daprHost, daprPort, communicationProtocol});
13+
await client.health.isHealthy();
1314
// Get config items from the config store
1415
try {
1516
const config = await client.configuration.get(DAPR_CONFIGURATION_STORE, CONFIGURATION_ITEMS);

0 commit comments

Comments
 (0)