Skip to content

Commit

Permalink
Test another option
Browse files Browse the repository at this point in the history
  • Loading branch information
Jordy Groenewoud committed Feb 7, 2025
1 parent 43a7632 commit a7dbed8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion WAFAzCli.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ param
. $PSScriptRoot\Get-AllWeightedAveragesPerService.ps1
. $PSScriptRoot\New-RetryCommand.ps1
. $PSScriptRoot\New-ApiRetryCommand.ps1
# Create a definition for ApiRetryCommand so we can use it in threadjobs
$def = @(
${function:New-ApiRetryCommand}.ToString()
)

# End region

Expand Down Expand Up @@ -179,7 +183,8 @@ foreach ($sub in $AllSubscriptions) {

$storageJobs += Start-Threadjob -ScriptBlock {

. $PSScriptRoot\New-ApiRetryCommand.ps1
$ApiRetryFunction = $using:def
${function:New-ApiRetryCommand} = $ApiRetryFunction

$strg = $using:strg
$headers = $using:headers
Expand Down

0 comments on commit a7dbed8

Please sign in to comment.