Hi Yannik,
Thank you for posting query in Microsoft Q&A Platform.
can you try to adjust the servertimeout
setting for the .append
command, you can use the .set command to set the timeout value.
Here's an example:
.set servertimeout 10m
This sets the timeout value to 10 minutes. You can adjust the value as per your requirement.
Alternatively, you can try using the .append async command with a longer timeout value and handle the .show operation failure gracefully. You can use a try-except block to catch the exception and retry the .show operation after a certain interval. Here's an example:
let operationId = .append async MyTable <| MyData;
let result = waitForCompletion(operationId, 10m);
if (result == "Completed") {
.show MyTable
} else {
let retryCount = 0;
let maxRetryCount = 3;
let retryInterval = 1m;
while (retryCount < maxRetryCount) {
retryCount += 1;
try {
.show MyTable
break;
} catch (ex) {
print ex;
print "Retrying in " + tostring(retryInterval) + " minutes...";
sleep(retryInterval);
}
}
}
This code retries the .show operation up to 3 times with a 1-minute interval between retries. You can adjust the retry count and interval as per your requirement.
I hope this helps! Please let me know how it goes. Thank you.