May 10, 20169 yr LS, My plan is to let the FMS handle more duties, without overloading the server. For instance 25 PSOS are allowed, so I would like to get the count of those sessions. How do I do that ? I would like to think there would be a simple way to know how many sessions are running and which script they are running. Or shouldn't I be doing this at all ? Regards.
May 10, 20169 yr I think a potential blocker would be that checking this as part of a server side script would consume a session, so you would ideally want to check this before calling your PSOS. Perhaps having a table that tracks availability? You would need to make this part of your scripting and update it when a PSOS runs and also when it ends to "check in" and "check out" a session to keep a running count. Maybe also a server side scheduled script to refresh it every so often as well?
May 10, 20169 yr I think the way to handle this is to set the max # of session that you think your server can handle and then in your script check for the error that FMS will throw in you try to do something through PSoS and no sessions are available. You can then either: - script it so that the functionality will run on the client - or loop and wait for a session to become available - or tell the user and stop
May 10, 20169 yr Author For now I am just going to go some error capture... something like : perform script on server if[ Get (LastError) = 815] perform script
Create an account or sign in to comment