File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
tools/clearlyDefined/src/ClearlyDefined Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ function Start-ClearlyDefinedHarvest {
2727 $coordinates = Get-ClearlyDefinedCoordinates @PSBoundParameters
2828 $body = @ {tool = ' package' ;coordinates = $coordinates } | convertto-json
2929 Write-Verbose $body - Verbose
30- (Invoke-WebRequest - Method Post - Uri ' https://api.clearlydefined.io/harvest' - Body $body - ContentType ' application/json' ).Content
30+ (Invoke-WebRequest - Method Post - Uri ' https://api.clearlydefined.io/harvest' - Body $body - ContentType ' application/json' - MaximumRetryCount 5 - RetryIntervalSec 60 - Verbose ).Content
3131 }
3232}
3333
@@ -117,7 +117,7 @@ Function Get-ClearlyDefinedData {
117117 continue
118118 }
119119
120- Invoke-RestMethod - Uri " https://api.clearlydefined.io/definitions/$coordinates " | ForEach-Object {
120+ Invoke-RestMethod - Uri " https://api.clearlydefined.io/definitions/$coordinates " - MaximumRetryCount 5 - RetryIntervalSec 60 | ForEach-Object {
121121 [bool ] $harvested = if ($_.licensed.declared ) { $true } else { $false }
122122 Add-Member - NotePropertyName cachedTime - NotePropertyValue (get-date ) - InputObject $_ - PassThru | Add-Member - NotePropertyName harvested - NotePropertyValue $harvested - PassThru
123123 if ($_.harvested ) {
You can’t perform that action at this time.
0 commit comments