Custom business logic execution has been terminated because it did not complete in permitted time
I get this error but it works, at random, when executing some event handlers in the business logic level. The even handler is a simple before update trigger.
- I get the object that is being updated.
- do some very basic single if conditions, conditional checks to handle things differently as required.
- send an email via Backendless.
That event handling takes place when I update something on the browser (using Backendless JS) and/or on the mobile app (Backendless Android sdk, latest), both in async. What happens is that the intended results in the conditional checks take place, basically it seems the event handler is doing its job. BUT I get this error anyway. When I get this error, it acts as an exception and I get in to the catch block of the client where I deal with UI stuff differently.
So basically I carry out the Fail callback in the client UI, because I get that error and it slips in to the catch block, while the update process works successfully.