Skip to content

Commit 693d33c

Browse files
author
Erick Banks
authored
Merge pull request #306 from RandomNoun7/maint/increase-sleep-interval
(MAINT) Increase timeout interval
2 parents 882947a + a948f7a commit 693d33c

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

tasks/start_sql_agent_job.ps1

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,12 @@ foreach ($instance in $SQLInstances) {
7979
return (Write-BoltError $message)
8080
}
8181
$selectedJob.start($jobName)
82-
# It takes the server a little time to spin up the job. If we don't do this here
83-
# then the -wait parameter may not work later.
84-
Start-Sleep -Milliseconds 300
8582
}
8683
}
84+
85+
# It takes the server a little time to spin up the job. If we don't do this here
86+
# then the -wait parameter may not work later.
87+
Start-Sleep -Seconds 1
8788
}
8889

8990
do {
@@ -96,6 +97,7 @@ do {
9697
}
9798
[void]$finishedJobs.add((New-CustomJobObject -job $job))
9899
}
100+
Start-Sleep -Milliseconds 300
99101
} while ($wait -and !$done)
100102

101103
$return.jobs = $finishedJobs

0 commit comments

Comments
 (0)