Skip to content

Commit 2d1f061

Browse files
committed
Update Invoke-ExecDurableFunctions.ps1
1 parent 180f2b7 commit 2d1f061

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/CIPPCore/Public/Entrypoints/HTTP Functions/CIPP/Core/Invoke-ExecDurableFunctions.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ function Invoke-ExecDurableFunctions {
116116
}
117117

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

0 commit comments

Comments
 (0)