It seems that the property/setting Job Handshake Timeout
is not respected or applied, I get timeouts on my jobs:
Error executing job: PowerShell did not respond in a timely fashion. PowerShell Universal is currently waiting 5 seconds for PowerShell to start running the script.
It is the 5 seconds that is too little and yet the settings I do do not help at all.
You can increase the timeout by setting the ‘Job Handshake Timeout’ setting in the Settings \ General \ Automation page.
I have set this in the UI of PSU (Settings / General / Automation / Job Handshake Timeout
)
I also have an appsettings.json
file copied to various locations (as it is not clear to me where this file should be located):
/config/appsettings.json
/config/.PowerShellUniversal/appsettings.json
The content / setting for Job Handshake Timeout
:
"UniversalAutomation": {
"Queues": [],
"JobHandshakeTimeout": 25,
"JobDebugging": false,
"ContinueJobOnServerStop": false
The values I put in the diverse appsettings.json
files is random as I wanted to see which one would reflect in the UI. None do, no value I set in that json file is showing in the UI.
It is a mystery to me where to put this value so it a) sticks and b) is actually used.
The reason I need to set this to a higher value is that I need to start jobs with a different environment (7.3.4) as the Default environment is 7.2.7 (.Net6) and I have a library that needs 7.3.4 (.Net7)
I have no issue waiting a bit longer because I need to have PSU start an environment outside the Default one but right now I get this timeout at a great rate and it is getting in the way.
EDIT: I also noticed since day one that loading PSU is a bit slow. It seems to ‘hang’ on this step for 5 minutes and then PSU is started:
PowerShell Universal is loading...
Loading configuration files...
Could it be that PSU tries to load configuration files but fails?
Product: PowerShell Universal
Version: 3.9.2