
Hi,
We are setting up dynamics business onprem version 2018 in Azure. We are configuring two app servers behind a Layer - 7 load balancer. The configuration is working fine.
We have some background tasks that are schedule based.
Since we are using two app servers, will the background tasks be executed twice in each server? Or BC will handle the task execution and run in only one server?
Please help me to understand how this scheduling works in a load balanced environment?
Thanks,
JaiGanesh
Hello,
The background task should not run twice.
docs.microsoft.com/.../devenv-task-scheduler
The document does state the following:
////
he task runs in a background session, which means that there is no user interface. The behavior is similar to that of the STARTSESSION method, where any dialog boxes that would normally appear are suppressed. For more information about specific dialog boxes, see StartSession method.
The session runs by using the same user/credentials that are used when calling AL code. The user must have appropriate permissions to the codeunit and any other objects that are associated with the operation of the codeunit.
////
If the answer is appropriate, please verify the the answer.
Thanks.