Is there a way to avoid an RTE for an action that is expected to take longer than 15 minutes?
I'm working on a type Virtual driver, that essentially runs a report on very large collectors and sometimes large enough to take longer than 15 minutes causing a Dataminer Run-time error, Thread Problem in SLProtocol.exe.
The RTE doesn't negatively impact the performance or results of the reporting, so I was wondering if there was a way to suppress it.
I realize the best way would be to actually change the logic for it not to take longer than 15 minutes, which is something my team will be trying to implement on an upcoming generic version of the driver, but I wanted to know if there was a workaround in the meantime.
You can use the queued | DataMiner Docs option in the options attribute of a QAction.
This will make the QAction run in the background and not trigger any warning for RTEs but do note that, as mentioned in the docs page, you MUST make sure that the QAction finishes and does not remain lingering even in the event the element gets stopped or deleted.
You can look into the IDisposable | DataMiner Docs feature to account for stopping/deleting if your DataMiner version permits.