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

Announcements

No record found.

News and Announcements icon
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
    Microsoft Employee 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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,161 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,046 Super User 2026 Season 1

#3
Dhiren Nagar Profile Picture

Dhiren Nagar 932 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans