Request Time out

  

 Hi All,

How does the time out for timers actually work ??

* For example, the timer which i am using runs for every 10 minutes.( Timeout =  10 minutes) and i understand that If the timer takes more than the defined standard time ( i.e 10 minutes) it gets aborted and logs in to the error log.

* In some cases it is logged that the timer has taken 10 min 8 sec or something like that, if this happens does the next run depends on this time or the time that is configured for the timer.


Thanks and Regards,

Mamini.

Hi Mamini,


Regarding the first question, the timeout for timers are configurable although as a good practice you should avoid long timers (more information see here).

Regarding the second question, when a timer is to be launched (it is time to be launched, you launch it manually or programatically or even a retry after timer fails) an event is placed in a queue for the scheduler service to launch, that's why the time it takes for it to be launched can vary (usually it takes some seconds to run).


João

João Marques wrote:

Hi Mamini,


Regarding the first question, the timeout for timers are configurable although as a good practice you should avoid long timers (more information see here).

Regarding the second question, when a timer is to be launched (it is time to be launched, you launch it manually or programatically or even a retry after timer fails) an event is placed in a queue for the scheduler service to launch, that's why the time it takes for it to be launched can vary (usually it takes some seconds to run).


João

Hi joao,

For Example, 

The time out = 15 minutes

scheduler = 5 min ( i.e runs for every 5 minutes)

* if the timer starts at  10 : 00 : 00 and ends ends at 10 : 16 : 00 , it gets aborted and does the next run runs according to the scheduler i.e if it is at 20:00 ( next instance ) ?? does it work like this ??


Thanks and Regards,

Mamini.


Solution

Hi Mamini,


In your example, at 10:05 an event will go to the scheduler but it will not be launched since the timer is already running. When it ends at 10:16, the 10:05 timer event in the queue will be launched by the scheduler (remember, it can take some seconds before it actually runs).


Nonetheless, you should analyze if it makes sense that you have a timer that takes longer than the intervals you schedule it.


Best regards,

João Marques

Solution

João Marques wrote:

Hi Mamini,


In your example, at 10:05 an event will go to the scheduler but it will not be launched since the timer is already running. When it ends at 10:16, the 10:05 timer event in the queue will be launched by the scheduler (remember, it can take some seconds before it actually runs).


Nonetheless, you should analyze if it makes sense that you have a timer that takes longer than the intervals you schedule it.


Best regards,

João Marques

Thank you