Using ExecuteProcess to call other processes within a Master Process - What are the caveats?
Posted: Fri Mar 04, 2016 1:24 am
Hi Guys,
I have been reluctant to use ExecuteProcess to process multiple processes due to me being partly paranoid and use chores instead. However due to the LOCK that
a chore places on the system while it's in process I am heavily leaning towards utilising a Master Process that will make multiple calls via the ExecuteProcess function. I use
What I wanted to know is, what will stop a Mega Process embedded with ExecuteProcess calls to fail? I am concerned that in the event a process fails along the way then the rest of the process will then not fire. The chore that we fires off every morning runs 120 processes ( we obviously donot want to hiccup along the way ), hence the reason for my caution. I use ExecuteProcess extensively however not for 100 odd processes chained up.Per the documentation the only time an ExecuteProcess call with fail is:
*****************************************************************************************************************************************************************************************************************
The parameter names passed in the ExecuteProcess function are matched at runtime against the parameter names specified in the process to be executed. If the passed names cannot be found in the parameter list of the process to be executed, a serious error results, causing the immediate termination of the process from which ExecuteProcess is called
*****************************************************************************************************************************************************************************************************************
My question is "Are there any OTHER scenarios that would prevent the rest of the processes running within a super process to run besides from what has been stated in the documentation above?"
Is it also possible to skip process where return_value = ProcessExitSeriousError(). I guess this is not possible based on the documentation.
Cheers
I have been reluctant to use ExecuteProcess to process multiple processes due to me being partly paranoid and use chores instead. However due to the LOCK that
a chore places on the system while it's in process I am heavily leaning towards utilising a Master Process that will make multiple calls via the ExecuteProcess function. I use
What I wanted to know is, what will stop a Mega Process embedded with ExecuteProcess calls to fail? I am concerned that in the event a process fails along the way then the rest of the process will then not fire. The chore that we fires off every morning runs 120 processes ( we obviously donot want to hiccup along the way ), hence the reason for my caution. I use ExecuteProcess extensively however not for 100 odd processes chained up.Per the documentation the only time an ExecuteProcess call with fail is:
*****************************************************************************************************************************************************************************************************************
The parameter names passed in the ExecuteProcess function are matched at runtime against the parameter names specified in the process to be executed. If the passed names cannot be found in the parameter list of the process to be executed, a serious error results, causing the immediate termination of the process from which ExecuteProcess is called
*****************************************************************************************************************************************************************************************************************
My question is "Are there any OTHER scenarios that would prevent the rest of the processes running within a super process to run besides from what has been stated in the documentation above?"
Is it also possible to skip process where return_value = ProcessExitSeriousError(). I guess this is not possible based on the documentation.
Cheers