Wait a few seconds before monitoring remote query run

This commit is contained in:
shati-patel
2022-01-19 17:05:28 +00:00
committed by Shati Patel
parent c9a649f974
commit 8aaa2492f2

View File

@@ -29,6 +29,9 @@ export class RemoteQueriesMonitor {
let attemptCount = 0;
// Wait a bit before starting to monitor the workflow run.
await this.sleep(RemoteQueriesMonitor.sleepTime);
while (attemptCount <= RemoteQueriesMonitor.maxAttemptCount) {
if (cancellationToken && cancellationToken.isCancellationRequested) {
return { status: 'Cancelled' };