You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One particular batch file I run, regularly takes over 9 hours to complete. however, the shell appears to terminate at exactly 8 hours. (the batch carries on running and completes an hour later).
MaxShellRunTime
Specifies the maximum time, in milliseconds, that the remote command or script is allowed to execute. The default is 28800000.
WinRM 2.0: The MaxShellRunTime setting is set to read-only. Changing the value for MaxShellRunTime will have no effect on the remote shells.
so - no amount of setting the maxshellruntime from the command line will work - it will always default to 8 hours
I suspect if you had an old (winrm 1) install and modified the value to > 8hours, upgrading to winRM 2 or 3 has not reset the stored value to 8hours so still works with >8hour jobs.
the unknown answer is to the question : would enabling the lifetime parameter override this?
Hi,
I have an issue where I open a shell:
and run a batch file:
One particular batch file I run, regularly takes over 9 hours to complete. however, the shell appears to terminate at exactly 8 hours. (the batch carries on running and completes an hour later).
from 8 hours onwards, when getting the output:
a 400 error is returned. I guessing because the shell has died.
looking at the pywinrm protocol code, work was started to implement the lifetime param:
pywinrm/winrm/protocol.py
Line 154 in b935aca
is there a reason this was pulled ? can it be put back easily? would it work?
I could probably do a pull request for this if I could get some background on why it was commented out ?
Phil
The text was updated successfully, but these errors were encountered: