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 

  • 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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 728 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 545 Super User 2026 Season 2

#3
AndrewThomas81 Profile Picture

AndrewThomas81 328 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans