codeunitAL Developmentofficial - Microsoftderived - from the source, no model text

Codeunit 456 "Job Queue Management"

Base Application · System.Threading

Across versions

  1. BC23present
  2. BC249 procedures added, 2 procedures removed
  3. BC255 procedures added
  4. BC26unchanged
  5. BC272 procedures changed, 1 procedures removed
  6. BC28-29unchanged
  7. BC302 procedures added, 1 procedures removed

Neighbourhood 18 connected objects and pages

Codeunit 9803 "Job Queue Telemetry" (calls, 5 links)Job Queue TelemetryCodeunit 461 "Job Queue Cleanup Tasks" (calls, 3 links)Job Queue Cleanup TasksCodeunit 841 "Cash Flow Management" (calls, 3 links)Codeunit 1852 "Sales Forecast Scheduler" (calls, 2 links)Sales Forecast SchedulerCodeunit 1956 "LPP Scheduler" (calls, 2 links)LPP SchedulerCodeunit 441 "Prepayment Mgt." (calls, 2 links)Prepayment Mgt.Codeunit 454 "Job Queue - Send Notification" (calls, 2 links)Job Queue - Send NotificationCodeunit 737 "VAT Report Mgt." (calls, 2 links)Codeunit 9112 "Job Queue Activities" (calls, 2 links)Job Queue ActivitiesCodeunit 4114 "Price List Line Sync" (calls)Price List Line SyncCodeunit 448 "Job Queue Dispatcher" (calls)Job Queue DispatcherCodeunit 450 "Job Queue Error Handler" (calls)Job Queue Error HandlerCodeunit 842 "Cash Flow Forecast Update" (calls)Cash Flow Forecast UpdateCodeunit 8912 "Environment Cleanup Subs" (calls)Environment Cleanup SubsCodeunit 9026 "User Login Time Tracker" (calls)User Login Time TrackerPage 3845 "Scheduled Tasks" (calls)Scheduled TasksPage 672 "Job Queue Entries" (calls)Page 9102 "Job Queue Tasks Activities" (calls)

Open in the neighbourhood explorer

One hop out, from the extracted relations and call graph. Up to 40 shown; the sections below list them all.

Base Application · System.Threading · BC23-30 · source at ea08af5e · facts from BC29

Events published

  • OnGetCheckDelayInMinutes(var DelayInMinutes: Integer) + BC24 (integration): Used for test. Sets the minimum age of stale job queue entries and job queue log entries.
  • OnRunJobQueueEntryOnceOnAfterJobQueueEntryInsert(SelectedJobQueueEntry: Record "Job Queue Entry"; JobQueueEntry: Record "Job Queue Entry") (integration)
  • OnFindStaleJobsAndSetErrorOnAfterSetError(var JobQueueEntry: Record "Job Queue Entry") + BC24 (integration)

Event subscriptions

  • ScheduleReport subscribes to Codeunit “Reporting Triggers” ScheduleReport
  • OnStatusChanged subscribes to Table “Job Queue Entry” OnAfterModifyEvent
  • OnBeforeDeleteJobQueueEntry subscribes to Table “Job Queue Entry” OnBeforeDeleteEvent
  • OnBeforeDeleteJobQueueLogEntry subscribes to Table “Job Queue Log Entry” OnBeforeDeleteEvent

Procedures

  • CheckUserInJobQueueAdminList(UserName: Text): Boolean + BC25 (internal)
  • CreateJobQueueEntry(var JobQueueEntry: Record "Job Queue Entry")
  • DeleteJobQueueEntries(ObjectTypeToDelete: Option; ObjectIdToDelete: Integer)
  • StartInactiveJobQueueEntries(ObjectTypeToStart: Option; ObjectIdToStart: Integer)
  • SetJobQueueEntriesOnHold(ObjectTypeToSetOnHold: Option; ObjectIdToSetOnHold: Integer)
  • SetRecurringJobsOnHold(CompanyName: Text)
  • SetStatusToOnHoldIfInstanceInactiveFor(PeriodType: Option Day,Week,Month,Quarter,Year; NoOfPeriods: Integer; ObjectTypeToSetOnHold: Option; ObjectIdToSetOnHold: Integer): Boolean
  • RunJobQueueEntryOnce(var SelectedJobQueueEntry: Record "Job Queue Entry")
  • CheckAndRefreshCategoryRecoveryTasks() + BC24
  • FindStaleJobsAndSetError() Δ BC24 Δ BC27: To find stale jobs (in process jobs with no scheduled tasks) and set them to error state. For both JQE and JQLE
  • UpdateRetriableFailedJobQueueLogEntry(var JobQueueEntry: Record "Job Queue Entry") + BC25 Δ BC27 (internal)
  • TooManyScheduledTasksNotification() (internal)
  • GetScheduledTasks(): Integer + BC24 (internal)
  • GetScheduledTasksForUser(UserId: Guid): Integer + BC24 (internal)
  • TooManyScheduledTasksDocs(ScheduledTaskNotification: Notification) (internal)

Plus 10 local procedures.

Triggers

OnRun

Calls

From the extracted call graph of BC29 (graphify-al on the snapshot checkout): calls whose target is known from a declared type or an Object::"Name" argument. Interface dispatch and calls through events are not counted, so the list is not complete.

Called by

Recent changes

Ask your agent

Procedure bodies are not stored here (D10). The call sections above are our own, per object, from the BC29 call graph. For a procedure body or the calls of one procedure, ask bc-code-atlas (external, by Stefan Maron, MIT; default corpus w1-28), which the bc-observatory plugin connects: bcatlas_resolve_node(object_type: "codeunit", object_name: "Job Queue Management"), then bcatlas_get_procedure_body or bcatlas_get_neighbors on the returned id.

Evidence 1 sources