![]() The Vendure Job Queue What is a job queue? For more information, see:Įnable Sending Telemetry to Application InsightsĪnalyzing Task Scheduler Telemetry Session Event Tableįrom the Business Central web client, you can open the Session Events table by adding table=2000000111 to the URL. Once set up, telemetry data will be sent to the resource as job queue moves through the flow. You can set up Business Central to send telemetry traces to an Application Insights resource in Azure. These tools let you follow the execution of a job and investigate errors in failure codeunits. Monitor and troubleshootīusiness Central offers two ways to monitor the flow of job queues: Azure Application Insights and the Session Event table. The user must have appropriate permissions to run the job queue and any other objects that are associated with the operation of the specified object.įor more information about assigning permissions, see Assign Permissions to Users and Groups in the business functionality help. The user that is used is the user that sets the job to ready state. The session runs using the same user/credentials that are used when calling AL code. of Attempts value hasn't been exceeded and it's a recurring job. It will be rescheduled if the Maximum No.of Attempts value has been exceeded and it's not a recurring job. It will stay in Error state if the Maximum No.The job queue then either stays in the Error state or is rescheduled:.The job queue entry and job queue log entry are updated with the error.The errors are saved by using Error Message Management.The job queue entry is updated to the Error state.The Job Queue Error Handler codeunit is run in a new background session.The failure codeunit path runs as follows:.If an exception occurs, none of the subsequent steps in the Job Queue Dispatcher path will be run, but instead, the failure codeunit path will be run. The specified Object ID to Run is then started. ![]() The job queue entry is updated to the In-Progress state, and a job queue log entry is created. Or, in the case of an already running "Category Code", it's rescheduled. It first checks whether the job should be run or rescheduled. ![]() The background session is run by the Job Queue Dispatcher codeunit:.When the scheduled task is picked up by the task scheduler to run, a new background session is started.When a job queue is created and set to ready state, a scheduled task is created to run, but not before the Earliest Start Date/Time.Here's a general overview of the process: For more information, see Task scheduler - detailed flow. General flowĪ job is run when the task scheduler's task is run. This section describes the flow that a job queue goes through. The following diagram illustrates the flow of the job queue: These jobs can be set to run on a recurring schedule.įor information about how users work with the job queue in the client, see Use Job Queues to Schedule Tasks. A job queue is basically an abstraction that uses the task scheduler from the platform to enable end users to view, create, or modify jobs that are set to run in the background. This article describes how the job queue works in Business Central. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |