'How do you handle ProgressPercentage not returning 100?
I am using the node @aws-sdk/client-timestream-query 3.53.0 package. I am running into an issue where the result of ProgressPercentage is not 100 but the promise returned.
const promise = this.client
.send(command)
.then((data) => parse(data))
.catch((err) => err);
this.cache.set('accountPlatforms', promise);
return (await this.cache.get('accountPlatforms')) || []
Then inconsistently we will get results that return like this from the promise.
{
"$metadata": {
"attempts": 1,
"httpStatusCode": 200,
"requestId": "redacted",
"totalRetryDelay": 0
},
"ColumnInfo": [
{
"Name": "platform",
"Type": [
null
]
},
{
"Name": "success",
"Type": [
null
]
},
{
"Name": "failure",
"Type": [
null
]
},
{
"Name": "total",
"Type": [
null
]
}
],
"NextToken": "redacted",
"QueryId": "redacted",
"QueryStatus": {
"CumulativeBytesMetered": 10000000,
"CumulativeBytesScanned": 108896,
"ProgressPercentage": 67.63129689174706
},
"Rows": [
]
}
I don't see a way to look up the completed query either by requestId or queryId from inside the our service.
Anyone know how to get the completed query?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
