Convertigo Public Knowledge base

Programmatically reset Reponse timeout of a Sequence/Transaction

The response timeout property of a Sequence or a Transaction defines the response maximum waiting time (in seconds).

If you don’t exactly know how long the sequence should last or if it is likely to change a lot or if you want to have more control on it, you can use the following code in your Sequence/Transaction:

var now = new Date().getTime(); context.lastAccessTime = now;

This will reset the timeout value to the actual time.

If you set it to 0 (zero) the request will timeout.

Be careful with the different values because it can end up with an infinite request execution.

(c) Convertigo 2023