Skip to content

Commit 180f2b7

Browse files
committed
add missing partitionkey
1 parent 4e02959 commit 180f2b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/CIPPCore/Public/Clear-CippDurables.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ function Clear-CippDurables {
4444
}
4545

4646
$CippQueueTasks = Get-CippTable -TableName 'CippQueueTasks'
47-
$RunningTasks = Get-CIPPAzDataTableEntity @CippQueueTasks -Filter "Status eq 'Running'" -Property RowKey, PartitionKey, Status
47+
$RunningTasks = Get-CIPPAzDataTableEntity @CippQueueTasks -Filter "PartitionKey eq 'Task' and Status eq 'Running'" -Property RowKey, PartitionKey, Status
4848
if (($RunningTasks | Measure-Object).Count -gt 0) {
4949
if ($PSCmdlet.ShouldProcess('Tasks', 'Mark Failed')) {
5050
$UpdatedTasks = foreach ($Task in $RunningTasks) {

0 commit comments

Comments
 (0)