From 2f74278072523c77d0deb790ce53fce2798f29d4 Mon Sep 17 00:00:00 2001 From: KelvinTegelaar Date: Mon, 19 Aug 2024 17:47:28 +0200 Subject: [PATCH] test --- .../Activity Triggers/Push-ExecScheduledCommand.ps1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Modules/CIPPCore/Public/Entrypoints/Activity Triggers/Push-ExecScheduledCommand.ps1 b/Modules/CIPPCore/Public/Entrypoints/Activity Triggers/Push-ExecScheduledCommand.ps1 index f157dd0884b9..da0cae51d4f9 100644 --- a/Modules/CIPPCore/Public/Entrypoints/Activity Triggers/Push-ExecScheduledCommand.ps1 +++ b/Modules/CIPPCore/Public/Entrypoints/Activity Triggers/Push-ExecScheduledCommand.ps1 @@ -4,6 +4,7 @@ function Push-ExecScheduledCommand { Entrypoint #> param($Item) + $item = $Item | ConvertTo-Json -Depth 100 | ConvertFrom-Json Write-Host "We are going to be running a scheduled task: $($Item.TaskInfo | ConvertTo-Json -Depth 10)" $Table = Get-CippTable -tablename 'ScheduledTasks' @@ -100,7 +101,7 @@ function Push-ExecScheduledCommand { default { throw "Unsupported recurrence format: $($task.Recurrence)" } } $nextRunUnixTime = [int64]$task.ScheduledTime + [int64]$secondsToAdd - Write-Host "The job is recurring and should occur again at: $nextRunUnixTime" + Write-Host "The job is recurring. It was scheduled for $($task.ScheduledTime). The next runtime should be $nextRunUnixTime" Update-AzDataTableEntity @Table -Entity @{ PartitionKey = $task.PartitionKey RowKey = $task.RowKey