Skip to content

Commit f7448b1

Browse files
committed
Add warm up timeout
1 parent 156554a commit f7448b1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

backup_github_repositories.ps1

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,11 @@ ForEach ($repository in $repositories) {
204204

205205
Write-Host "[$($repository.full_name)] Starting backup to ${directory}..." -ForegroundColor "DarkYellow"
206206
Start-Job $scriptBlock -ArgumentList $repository.full_name, $directory | Out-Null
207+
208+
# Give the job some time to start.
209+
$warmUpTimeoutInMilliseconds = 50
210+
Start-Sleep -Milliseconds $warmUpTimeoutInMilliseconds
211+
207212
break
208213
}
209214
}

0 commit comments

Comments
 (0)