Skip to content

Commit

Permalink
Remove temporary
Browse files Browse the repository at this point in the history
  • Loading branch information
KelvinTegelaar committed Jan 16, 2025
1 parent bcf3770 commit a8686b4
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,7 @@ function Push-UpdateTenants {
Param($Item)
$QueueReference = 'UpdateTenants'
$RunningQueue = Invoke-ListCippQueue | Where-Object { $_.Reference -eq $QueueReference -and $_.Status -ne 'Completed' -and $_.Status -ne 'Failed' }
if ($RunningQueue) {
Write-Host 'Update Tenants already running'
return
}

$Queue = New-CippQueueEntry -Name 'Update Tenants' -Reference $QueueReference -TotalTasks 1
try {
$QueueTask = @{
Expand All @@ -30,4 +27,4 @@ function Push-UpdateTenants {
$QueueTask.Status = 'Failed'
Set-CippQueueTask @QueueTask
}
}
}

0 comments on commit a8686b4

Please sign in to comment.