07-06-2016 01:10 PM - edited 03-01-2019 06:42 AM
Task Name | Change of time out for Powershell |
Description | |
Prerequisites | Tested on UCSD 5.4 / 6.5 |
Category | Workflow |
Components | vSphere 5.x |
User Inputs | |
Instructions for Regular Workflow Use:
Thank you Alejandro Madurga Ainoza
Powershell agent have three different timeouts:
One for Idle time
One per command execution
One per session
Find attached a custom tasks that behaves similar to the OOTB but it allows you to enter any amount of minutes.
Tested with 65 mins and it worked (I set the timeout to 70 mins, and the script slept for 65 mins):
There seems to be an issue with this in 6.5, the task errors with:
ReferenceError: 'PSAgentAPI' is not defined in <eval> at line number 79, selectedContext=<None>
Hi Erich, Can you try 'Execute Native Powershell Command' task instead in UCSD 6.5 ? Thanks, Phani
Hi Phani,
Cant do that, it still has a 60 min timeout. We have some scripts that can run longer. Thats why we use this one.
Hi Erich, Please try the updated WF (CustomPSTimeout-UCSD65.wfdx) that is uploaded to this community document. Thanks, Phani
Looks great! Thanks!
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: