Skip to content

Commit

Permalink
Add warm up timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
countzero committed Jul 12, 2019
1 parent 156554a commit f7448b1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions backup_github_repositories.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,11 @@ ForEach ($repository in $repositories) {

Write-Host "[$($repository.full_name)] Starting backup to ${directory}..." -ForegroundColor "DarkYellow"
Start-Job $scriptBlock -ArgumentList $repository.full_name, $directory | Out-Null

# Give the job some time to start.
$warmUpTimeoutInMilliseconds = 50
Start-Sleep -Milliseconds $warmUpTimeoutInMilliseconds

break
}
}
Expand Down

0 comments on commit f7448b1

Please sign in to comment.