Codeunit 456 Job Queue Management

Base Application, System.Threading

Source AL, 570 lines

src/Layers/W1/BaseApp/Modules/System/JobQueue/JobQueueManagement.Codeunit.allines 7 to 22 of 570, Copyright (c) Microsoft Corporation. MIT

codeunit 456 "Job Queue Management"{    var        JobQueueTelemetry: Codeunit "Job Queue Telemetry";        RunOnceQst: label 'This will create a temporary non-recurrent copy of this job and will run it once in the foreground.\Do you want to continue?';        ExecuteBeginMsg: label 'Executing job queue entry...';        ExecuteEndSuccessMsg: label 'Job finished executing.\Status: %1', Comment = '%1 is a status value, e.g. Success';        ExecuteEndErrorMsg: label 'Job finished executing.\Status: %1\Error: %2', Comment = '%1 is a status value, e.g. Success, %2=Error message';        JobSomethingWentWrongMsg: Label 'Something went wrong and the job has stopped. Likely causes are system updates or routine maintenance processes. To restart the job, set the status to Ready.';        JobSomethingWentWrongMsgErr: Label 'Something went wrong and the job has stopped. Likely causes are system updates or routine maintenance processes. The job will automatically run again.';        JobQueueStatusChangeTxt: Label 'The status for Job Queue Entry: %1 has changed.', Comment = '%1 is the Job Queue Entry Id', Locked = true;        TelemetryStaleJobQueueEntryTxt: Label 'Updated Job Queue Entry status to error as it is stale. Please investigate associated Task Id for error.', Locked = true;        TelemetryStaleJobQueueLogEntryTxt: Label 'Updated Job Queue Log Entry status to error as it is stale. Please investigate associated Task Id for error.', Locked = true;        TelemetryStaleRetriableJobQueueLogEntryTxt: Label 'Updated Job Queue Log Entry status to error as it is was retriable by platform.', Locked = true;        RunJobQueueOnceTxt: Label 'Running job queue once.', Locked = true;        TooManyScheduledTasksLinkTxt: Label 'Learn more';

All 570 lines

Events 3 in 29

[IntegrationEvent] OnRunJobQueueEntryOnceOnAfterJobQueueEntryInsert(SelectedJobQueueEntry: Record "Job Queue Entry"; JobQueueEntry: Record "Job Queue Entry")new in 23
[IntegrationEvent] OnGetCheckDelayInMinutes(var DelayInMinutes: Integer)new in 24
[IntegrationEvent] OnFindStaleJobsAndSetErrorOnAfterSetError(var JobQueueEntry: Record "Job Queue Entry")new in 24

Public procedures 9 in 29

CreateJobQueueEntry(var JobQueueEntry: Record "Job Queue Entry")17-29
DeleteJobQueueEntries(ObjectTypeToDelete: Option; ObjectIdToDelete: Integer)17-29
StartInactiveJobQueueEntries(ObjectTypeToStart: Option; ObjectIdToStart: Integer)17-29
SetJobQueueEntriesOnHold(ObjectTypeToSetOnHold: Option; ObjectIdToSetOnHold: Integer)17-29
SetStatusToOnHoldIfInstanceInactiveFor(PeriodType: Option Day,Week,Month,Quarter,Year; NoOfPeriods: Integer; ObjectTypeToSetOnHold: Option; ObjectIdToSetOnHold: Integer): Boolean17-29
SetRecurringJobsOnHold(CompanyName: Text)new in 18

All 16 procedures in 17-29

Changes 1 in 27

List17181920212223242526272829
Procedures2112421
Events12
internal SendForApproval(var JobQueueEntry: Record "Job Queue Entry")22 to 26
gone

All 16 changes in 17-29