Hello members,
I am using system.util.invokeAsynchronous for running certain functions and it is called from Gateway Timer script
For example
system.util.invokeAsynchronous(longProcess, [arg1,arg2])
In this case if there's an error within longprocess, then it is not notified in the Ignition Gateway's Status > Gateway Scripts > Timer section. Instead it always displays success (refer screenshot below).
If there is an error in the longprocess function it is notified in the Status > error log section only as shown below.
So my question is, if we use invoke asynchronous how to capture the error in the function which is called within it.I tried calling invoke asynchronous within try except to capture error using logger, but it doesn't capture the error. But if i call the function without invoke asynchronous then try except captures the error.
thanks in advance for your support.