We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 882947a + a948f7a commit 693d33cCopy full SHA for 693d33c
tasks/start_sql_agent_job.ps1
@@ -79,11 +79,12 @@ foreach ($instance in $SQLInstances) {
79
return (Write-BoltError $message)
80
}
81
$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
85
86
+
+ # It takes the server a little time to spin up the job. If we don't do this here
+ # then the -wait parameter may not work later.
87
+ Start-Sleep -Seconds 1
88
89
90
do {
@@ -96,6 +97,7 @@ do {
96
97
98
[void]$finishedJobs.add((New-CustomJobObject -job $job))
99
100
+ Start-Sleep -Milliseconds 300
101
} while ($wait -and !$done)
102
103
$return.jobs = $finishedJobs
0 commit comments