Job Queue Setup
Replications can be automated using job queues. A monitoring job queue can be created to send e-mail notifications on failures.
Setting up a Replication Job Queue Entry
It is possible to set up a replication to be run automatically using the a job queue entry.
To set up a job queue entry for a replication:
Choose the icon, enter Replications, and then select a related link.
Select the Create Job Queue Entry action.
In a confirmation dialog window, select Yes, if incremental replication is to be run or No, if full replication is to be used.
Provide the recurrence parameters and set the status to Ready.
Viewing Job Queue Entries for a Replication
To see job queue entries related to a replication:
Choose the icon, enter Replications, and then select a related link.
Select the Show Job Queue Entries action.
Important
Grouping job queue entries into categories reduces the risk of locking, because job queue entries that belong to the same category cannot be run simultaneously.
Monitoring Job Queue Entries
It is possible to set up a job queue entry to monitor all the job queue entries which are set up for replications. A monitoring job queue entry puts replication jobs on hold if they constantly fail and notifies the e-mail recipients.
Setting Up a Job Queue Entry Monitor
To set up a monitoring job queue entry:
Choose the icon, enter MDMS Setup, and then select a related link.
Set up the following fields on the Job Queue Monitoring FastTab of the MDMS Setup:
- Maximum Number of Attempts to Restart JQ - Specifies the maximum number of attempts to restart a job queue entry. When this value is exceeded, the job queue status is set to On Hold.
- Codeunit ID to Restart - Specifies the Codeunit Id used by the job queue monitor function. Codeunit Id 20020699 is suggested automatically.
- Send Notification - Specifies whether the system sends notifications after the Maximum Number of Attempts to Restart JQ value is exceeded.
- Email Recipients - Specifies notification e-mails recipients.
Select the Test Email action on a MDMS Setup and send a test e-mail.
Select the Create Job Queue Entry Monitor action, provide the recurrence parameters and set status Ready.