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...
Answered

Job Queue > serial call of specific jobs in a specified order

(0) ShareShare
ReportReport
Posted on by 144

Hi,

we have a couple of jobs that have to run every night one after the other in a given order. Now I could achieve this by calling the jobs via a codeunit. However, I would like to have the jobs executed individually via the job queue. By including the jobs in a category, I can make sure that they run one after the other. But do I have any influence on the order in which they are called up, or is that just random, like with events?

Thanks in Advance
Ralf

I have the same question (0)
  • Suggested answer
    DAnny3211 Profile Picture
    11,397 on at

    Hi

    no, it is not causal... the jobs follow the order you have decided on.

    learn.microsoft.com/.../devenv-job-queue

    DAniele

  • Suggested answer
    Inge M. Bruvik Profile Picture
    1,111 Moderator on at

    I do not think that the standard system offer that kind of control on the job queue.

    So i think you have to customize it in one form or another at least as long as you want the jobs to run more than once every day.

    If you want them to run only once a day you could control it by using start time and stop time.

  • Suggested answer
    Amit Profile Picture
    2,559 on at
  • neckit Profile Picture
    144 on at

    I think the best way is actually to put the jobs to be executed at night into a category with a time delay.
    If an error should then occur in a job, I then first have to increase the start times of the subsequent jobs before I set the faulty job to Ready again.

    Thanks!

  • Suggested answer
    Inge M. Bruvik Profile Picture
    1,111 Moderator on at

    Sounds like a good plan!

  • Suggested answer
    YUN ZHU Profile Picture
    95,720 Super User 2025 Season 2 on at

    Hi, Personally I don't recommend separating these successive processes, you should put them in one execution code and run them sequentially.

    It's a good idea to split the processing time, but if one of them takes too long, or there is an exception handling such as an error, it will not work properly.

    If you want to divide these into different Job Queues, you need to read whether the previous one is completed in the next processing. Run when done.

    Hope this helps as well.

    Thanks.

    ZHU

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 2,664

#2
YUN ZHU Profile Picture

YUN ZHU 960 Super User 2025 Season 2

#3
Jainam M. Kothari Profile Picture

Jainam M. Kothari 773 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans