Please note that VisualCron support is not actively monitoring this community forum. Please use our contact page for contacting the VisualCron support directly.


Luke Saunders
2020-08-25T20:34:04Z
It would be helpful in Jobs with powershell tasks to be able to keep the runspace/state of a powershell task for another powershell task later on in the Job or the same task if it is part of a loop. Lets say that you have opened a TCP connection of some kind, to a database or to an API, within your powershell code. If you could set the powershell task to keep its runspace when you get back to it, you won't have to tear down and build the connection over and over. Is there a way to pass that kind of a connection object between tasks already? If not feel free to move this to Feature Requests.
Sponsor
Forum information
Support
2020-08-26T15:26:04Z
Originally Posted by: Luke Saunders 

It would be helpful in Jobs with powershell tasks to be able to keep the runspace/state of a powershell task for another powershell task later on in the Job or the same task if it is part of a loop. Lets say that you have opened a TCP connection of some kind, to a database or to an API, within your powershell code. If you could set the powershell task to keep its runspace when you get back to it, you won't have to tear down and build the connection over and over. Is there a way to pass that kind of a connection object between tasks already? If not feel free to move this to Feature Requests.



Hi Luke,

This isn't possible currently. You'll have to do everything in the same script or create new connections. I'll move this to FR

Michael
Support
http://www.visualcron.com 

Please like  VisualCron on facebook!
Users browsing this topic
Scroll to Top