Skip to content

Commit

Permalink
Change loader pause to 1 not 5 to fix gRPC error
Browse files Browse the repository at this point in the history
  • Loading branch information
Leslie-Wong-H committed Jul 14, 2023
1 parent f56afad commit fb3c2d6
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -209,9 +209,10 @@ const messageHandle = async (data) => {
);
const jsonData = flatten(segments);

// Pause for 5 seconds to make node arrange the compute resource.
console.log("Pause for 5 seconds");
await new Promise((resolve) => setTimeout(resolve, 5000));
// Pause for 1 second to make node arrange the compute resource.
// Note: not 5 in case of gRPC Error: 13 INTERNAL: No message received
console.log("Pause for 1 second");
await new Promise((resolve) => setTimeout(resolve, 1000));

console.log(`Uploading JSON data to Milvus`);

Expand Down

0 comments on commit fb3c2d6

Please sign in to comment.