web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

Task scheduling in a load balanced configuration

(0) ShareShare
ReportReport
Posted on by

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 

I have the same question (0)
  • Suggested answer
    Marco Mels Profile Picture
    on at

    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.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 3,010

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 1,270 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,085 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans