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 

  • Suggested answer
    Marco Mels Profile Picture
    on at
    RE: Task scheduling in a load balanced configuration

    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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Kudos to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

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

#1
YUN ZHU Profile Picture

YUN ZHU 446 Super User 2025 Season 1

#2
Sagar Dangar, MCP Profile Picture

Sagar Dangar, MCP 347

#3
Mansi Soni Profile Picture

Mansi Soni 327

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans