Skip to content

Commit cf738e1

Browse files
authored
Merge pull request KelvinTegelaar#1180 from JohnDuprey/dev
timer tweaks
2 parents 4e4491c + 6362279 commit cf738e1

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

Modules/CIPPCore/Public/Entrypoints/Timer Functions/Start-DurableCleanup.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ function Start-DurableCleanup {
3939
Write-Information "Orchestrator: $($Orchestrator.PartitionKey), created: $CreatedTime, running for: $RunningDuration minutes"
4040
$ClearQueues = $true
4141
if ($PSCmdlet.ShouldProcess($_.PartitionKey, 'Terminate Orchestrator')) {
42+
$Orchestrator = Get-CIPPAzDataTableEntity @Table -Filter "PartitionKey eq '$($Orchestrator.PartitionKey)'"
4243
$Orchestrator.RuntimeStatus = 'Failed'
4344
Update-AzDataTableEntity @Table -Entity $Orchestrator
4445
$CleanupCount++

Modules/CIPPCore/Public/Set-CIPPGDAPInviteGroups.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ function Set-CIPPGDAPInviteGroups {
6060
#Write-Information ($InputObject | ConvertTo-Json)
6161
$InstanceId = Start-NewOrchestration -FunctionName 'CIPPOrchestrator' -InputObject (ConvertTo-Json -InputObject $InputObject -Depth 5 -Compress)
6262
Write-Information "Started GDAP Invite orchestration with ID = '$InstanceId'"
63+
return $InstanceId
6364
}
6465
}
6566
}

0 commit comments

Comments
 (0)