Setup:
- 2 agents: DMA1, DMA2
- Element "myElement" using "myProtocol" is running on DMA2
- Interactive Automation script with dummy linked to "myProtocol"
What will happen when:
- Running the from DMA1
- Selecting the "myElement" from DMA2
- Script is running + showing the interactive screen
- Connection between DMA1 and DMA2 disappears
Will the script aboard?
Will it keep running forever or aboard after a specific timeout time?
Can other execution instances of that script using the same element still get launched?
Hi Mieke
I'm not exactly sure how to interpret "connection between nodes disappears"
Is this due to the fact that one of these nodes went down? (server reboot, windows updates, DataMiner restart or stop for planned maintenance?)
Because if that 2nd DMA is fully unavailable, it means either way you loose access to that element running on this node. So I guess in this situation you're primary goal would be to resolve the DM node availability.
Assuming now you are referring to a DataMiner system that spans multiple remote nodes, where both nodes remain running fine, but simply the communication between those sites has dropped.
Q1: Will the script abort?
As you are running the script from DMA-1, I assume this is also the DataMiner where you initiated your client connection with. Connection loss from DMA-1 towards DMA-2 should not result in a direct abortion of that script instance.
Note that most likely your script will run into issues that could cause a failure of your script. (resulting in aborting the code).
it might help when you configure following script settings:
Select Do not fail when elements are not active or in timeout to keep a script from failing when it encounters an element that is not active or in timeout.
and
Select C#: Return NULL instead of an exception upon a GetParameter of a non-initialized parameter to ensure no exception is thrown when an undefined or empty parameter is encountered in C# code. Null will be returned instead.
Reference: General script configuration | DataMiner Docs
Q2: Will it keep running forever or abort after a specific timeout time?
Scripts always have a defined timeout time. If the code didn't finish within that time, the script will get aborted with failures. Note that this is configurable:
How to configure script timeout?
Q3: Can other execution instances of that script using the same element still get launched?
Please have a look at following reference: Script execution options
Depending on how you configure the "element lock" options in combination with the state "Wait when locked or busy", these settings will allow you to build the combination that is best suited for your needs.
Hope that helps you out already? if not, please let us know 😉