90
Views
2
Comments
Timers executed in a specific server

Good Morning/Afternoon

I am working on an application on Outsystems 10 that has a couple of timers that are executed randomly by our front-end servers with the Load Balancer that is integrated in the Outsystems Platform. 

My question is is there a way to force to execute a timer in a specific server?

Thanks in advance.

2022-09-05 11-03-57
Sérgio Miranda
Staff

Hello Paulo,
I believe that timers are executed randomly on front-end servers without the load balancer being involved. The Scheduler service in each server fetches information from the database about which timers need to be executed and the one who gets there first, will be the one to execute it.
Then a request is sent locally from the Scheduler service to the application server running the code to trigger the execution, so it never goes to the load balancer.

About restricting the execution of some timers to specific servers:
One way of doing it is by disabling timers in Service Center on the servers where you don't want to run them, but this will apply to all timers.
Another way is by using deployment zones and placing the module with the timers in a separate zone. Then add to that zone only the servers that you want to execute those timers.
I'm not sure if this will work in OutSystems 10.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.