Sleep earlier
This commit is contained in:
@@ -29,10 +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) {
|
||||
await this.sleep(RemoteQueriesMonitor.sleepTime);
|
||||
|
||||
if (cancellationToken && cancellationToken.isCancellationRequested) {
|
||||
return { status: 'Cancelled' };
|
||||
}
|
||||
@@ -47,7 +46,6 @@ export class RemoteQueriesMonitor {
|
||||
return workflowStatus;
|
||||
}
|
||||
|
||||
await this.sleep(RemoteQueriesMonitor.sleepTime);
|
||||
attemptCount++;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user