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

Job Queue Entries | Prevent from running after service crashed

(1) ShareShare
ReportReport
Posted on by 16
Hello everyone,
I tested a little bit with the Job Queue Entries and found out that the job will run also after a service crash from the taskscheduler, after the service started up again.
 
Here a small example:
  • In our Enviroment it is important, that some of the jobs are running sequentially.
  • I tried to simulate a service crash in the nighttime to check, how the system reacts to this.
    • I stopped the service at 21:50 (9:50pm)
    • I set the Starting Time to 22:00 (10pm) and the End Time to 22:05 (10:05pm)
    • The earliest Start Date/Time was set to 27.05.2024 and 22:00 (10pm) automatically
    • I started the service again at 22:15 (10:15pm)
  • The job, which was timed for 22:00 (10pm) just started running after the service (TaskScheduler) booted up again.
 
My question is:
Is there any chance for me to prevent the jobs from running parallel, if my TaskScheduler crashes at randomly at nighttime and boots up after two or three hours?
 
Thanks in advance :)
I have the same question (0)
  • Suggested answer
    Dynamics_Decoded_Gokul Profile Picture
    463 on at
    Hi 

    You can create a Codeunit which will have all this codes are called in Sequentially and in the job queue scheduler you can start one codeunit and configure the same 
     
    that will run all the task in sequence if the one get failed then rest all the methods will be stopped automatically. 
     
    Thanks 
    Gokul
  • Gerardo Rentería García Profile Picture
    25,388 Most Valuable Professional on at
    Hi
    Complementing what our colleague has commented, I give you a couple of interesting links, related to some considerations and strategies in managing job queues, in addition to identifying that we can also manage them via API, which allows us more control over them.
    BR
    GR

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,126

#2
Khushbu Rajvi. Profile Picture

Khushbu Rajvi. 744 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 674 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans