Skip to content

Commit 2f74278

Browse files
test
1 parent a308f03 commit 2f74278

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Modules/CIPPCore/Public/Entrypoints/Activity Triggers/Push-ExecScheduledCommand.ps1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ function Push-ExecScheduledCommand {
44
Entrypoint
55
#>
66
param($Item)
7+
$item = $Item | ConvertTo-Json -Depth 100 | ConvertFrom-Json
78
Write-Host "We are going to be running a scheduled task: $($Item.TaskInfo | ConvertTo-Json -Depth 10)"
89

910
$Table = Get-CippTable -tablename 'ScheduledTasks'
@@ -100,7 +101,7 @@ function Push-ExecScheduledCommand {
100101
default { throw "Unsupported recurrence format: $($task.Recurrence)" }
101102
}
102103
$nextRunUnixTime = [int64]$task.ScheduledTime + [int64]$secondsToAdd
103-
Write-Host "The job is recurring and should occur again at: $nextRunUnixTime"
104+
Write-Host "The job is recurring. It was scheduled for $($task.ScheduledTime). The next runtime should be $nextRunUnixTime"
104105
Update-AzDataTableEntity @Table -Entity @{
105106
PartitionKey = $task.PartitionKey
106107
RowKey = $task.RowKey

0 commit comments

Comments
 (0)