File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
Modules/CIPPCore/Public/Entrypoints/Timer Functions Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ function Start-DurableCleanup {
1515
1616 [CmdletBinding (SupportsShouldProcess = $true )]
1717 param (
18- [int ]$MaxDuration = 3600
18+ [int ]$MaxDuration = 86400
1919 )
2020
2121 $WarningPreference = ' SilentlyContinue'
@@ -49,6 +49,11 @@ function Start-DurableCleanup {
4949 if ($PSCmdlet.ShouldProcess ($_.PartitionKey , ' Terminate Orchestrator' )) {
5050 $Orchestrator = Get-CIPPAzDataTableEntity @Table - Filter " PartitionKey eq '$ ( $Orchestrator.PartitionKey ) '"
5151 $Orchestrator.RuntimeStatus = ' Failed'
52+ if ($Orchestrator.PSObject.Properties.Name -contains ' CustomStatus' ) {
53+ $Orchestrator.CustomStatus = " Terminated by Durable Cleanup - Exceeded max duration of $MaxDuration seconds"
54+ } else {
55+ $Orchestrator | Add-Member - MemberType NoteProperty - Name CustomStatus - Value " Terminated by Durable Cleanup - Exceeded max duration of $MaxDuration seconds"
56+ }
5257 Update-AzDataTableEntity @Table - Entity $Orchestrator
5358 $CleanupCount ++
5459 }
Original file line number Diff line number Diff line change 1- 7.5.2
1+ 7.5.3
You can’t perform that action at this time.
0 commit comments