File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
Modules/CIPPCore/Public/Entrypoints/Activity Triggers Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -317,13 +317,12 @@ function Push-ExecScheduledCommand {
317317 }
318318 Write-LogMessage - API ' Scheduler_UserTasks' - tenant $Tenant - tenantid $TenantInfo.customerId - message " Failed to execute task $ ( $task.Name ) : $errorMessage " - sev Error - LogData (Get-CippExceptionData - Exception $_.Exception )
319319 }
320- Write-Information ' Sending task results to target. Updating the task state.'
321320
322321 # For orchestrator-based commands, skip post-execution alerts as they will be handled by the orchestrator's post-execution function
323322 if ($Results -and $Item.Command -notin $OrchestratorBasedCommands ) {
323+ Write-Information " Sending task results to post execution target(s): $ ( $Task.PostExecution -join ' , ' ) ."
324324 Send-CIPPScheduledTaskAlert - Results $Results - TaskInfo $task - TenantFilter $Tenant - TaskType $TaskType
325325 }
326- Write-Information ' Sent the results to the target. Updating the task state.'
327326
328327 try {
329328 # For orchestrator-based commands, skip task state update as it will be handled by post-execution
You can’t perform that action at this time.
0 commit comments