Skip to content

Commit

Permalink
dedicated cleanup task for runner
Browse files Browse the repository at this point in the history
  • Loading branch information
clr2of8 committed Nov 10, 2023
1 parent 932c181 commit b59800b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Public/Invoke-SetupAtomicRunner.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ function Invoke-SetupAtomicRunner {
$task = New-ScheduledTask -Action $taskAction -Principal $taskPrincipal -Trigger $triggers -Description "A task that runs 1 minute or later after boot to start the atomic test runner script"
# setup scheduled task that will start the runner cleanup task after restart
$taskName2 = "KickOff-AtomicRunnerScheduledTask"
Unregister-ScheduledTask $taskName -confirm:$false -ErrorAction Ignore
Unregister-ScheduledTask $taskName2 -confirm:$false -ErrorAction Ignore
$taskAction2 = New-ScheduledTaskAction -Execute "powershell.exe" -Argument "-exec bypass -Command Invoke-KickoffAtomicRunner -scheduledTaskCleanup"
$taskPrincipal = New-ScheduledTaskPrincipal -UserId $artConfig.user
$task2 = New-ScheduledTask -Action $taskAction2 -Principal $taskPrincipal -Trigger $triggers -Description "A task that runs 1 minute or later after boot to start the atomic test runner cleanup script"
Expand Down

0 comments on commit b59800b

Please sign in to comment.