Monitoring Job Queues: Setting Up Failure Notifications in Business Central
Introduction
A job queue lets users set up and manage background tasks that run automatically. These tasks can be scheduled to run on a recurring schedule.
For a long time, users had a common problem in Business Central—when a job queue failed, there was no alert or warning. You’d only notice something was wrong when a regular task didn’t run for a few days.
Some people tried to fix this by setting up another job queue to watch and restart failed ones.
But that didn’t always work, especially if an update happened at the same time.
But that didn’t always work, especially if an update happened at the same time.
Now, Microsoft has finally added a built-in way to get alerts when a job queue fails.
You can get notified either inside Business Central or by using Business Events.
In this blog, we’ll look at how to set up notifications directly within Business Central.
References
Configuration
Search for "Assisted Setup" in Business Central's global search.
Add the additional users who need to be notified when the job queue fails along with the job creator (if required).
Choose whether you want the notification to be in-product or using Business Events (and Power Automate).
For now, I'm choosing in-product.
Choose the frequency of the notification, you can have it either when a single job fails or you can have it after 3-5 jobs have failed (as per settings)
Now for testing I've run a job queue and on the home page, I get the following notification.
Clicking on "Show more details" give me a list of all the failed job queues.
Conclusion
This new notification feature is a much-needed improvement and a good step forward.
It helps users catch job queue failures quickly, without having to manually check every day.
However, the setup and experience still feel a bit buggy and lacklustre.
With some refinements, it could be a lot smoother and more user-friendly.
Still, it's definitely worth enabling if you rely on background jobs in Business Central.
Comments
Post a Comment