How do I stop a server event being executed

Hi, All

How do I stop a server event being executed when the server event is so long time to wait.

Hi Con Liu,

What do you mean with Server Event? 

Are you talking about a BPT process, or about a timer action?

Regards,

Daniel

Con liu wrote:

Hi, All

How do I stop a server event being executed when the server event is so long time to wait.

 Hi Con liu,


Have you tried setting a request timeout?

"...when a web request is taking to long to process and reaches the defined request timeout, the thread that's running it will be abruptly interrupted, generating a runtime error and avoiding waste of resources."

https://success.outsystems.com/Support/Enterprise_Customers/Maintenance_and_Operations/Timeouts_Under_the_Hood 


If you are using a Reactive app when calling a server action you can set the Server Request Timeout in seconds. 

When the server action takes too long it will timeout raising an exception, you can handle the raised exception using a Communication Exception Handler:



Hope it helps!


Regards,

Miguel Chaparra