---
id: change/bcapps/14135
type: change
title: "#14135 [Job Queue] Don't cancel the executed task when scheduling the next run"
summary: When the Job Queue schedules the next run after a successful recurring run or a retry, it no longer sends a platform cancel for the task that is still executing. System Task ID is still cleared, and other task IDs are still cancelled, which cuts redundant cancellation notifications.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - codeunit job queue dispatcher
  - table job queue entry
  - codeunit job queue error handler
system: development
review:
  state: reviewed
  by: opus
  at: "2026-11-20T00:57:46.522Z"
  flags: []
generated:
  at: "2026-12-01T00:17:57.990Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 5b04c33da1c85a63ae1e4359dbf33853af7ad30d
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/14135
    title: "microsoft/BCApps#14135: [Job Queue] Don't cancel the executed task when scheduling the next run"
    date: "2026-11-17"
    commit: 5b04c33da1c85a63ae1e4359dbf33853af7ad30d
    t: null
    quote: null
links:
  learn: []
  objects:
    - object/codeunit/448
    - object/table/472
    - object/codeunit/450
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
  related:
    - to: https://learn.microsoft.com/dynamics365/business-central/dev-itpro/developer/devenv-job-queue
      title: Job queue
      label: possibly related
      why: touches Codeunit 448 "Job Queue Dispatcher"
      by: code
    - to: https://learn.microsoft.com/dynamics365/business-central/admin-job-queues-schedule-tasks
      title: Schedule jobs to run automatically
      label: possibly related
      why: Explains job queue scheduling and recurring task execution that the fix addresses.
      by: model
number: 14135
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/14135
kind: pr
base_branch: main
major: "30"
merged_at: "2026-11-17T10:12:44Z"
author: darjoo
author_type: User
community_contribution: false
labels:
  - "Team: Integrations"
change_class: code
change_kind: fix
behavior_change: true
breaking: false
files:
  count: 4
  additions: 141
  deletions: 3
  al: 3
apps:
  - Base Application
objects_touched:
  - key: codeunit/448
    page: codeunit/448
    type: codeunit
    id: 448
    name: Job Queue Dispatcher
    app: Base Application
    status: modified
  - key: table/472
    page: table/472
    type: table
    id: 472
    name: Job Queue Entry
    app: Base Application
    status: modified
  - key: codeunit/450
    page: codeunit/450
    type: codeunit
    id: 450
    name: Job Queue Error Handler
    app: Base Application
    status: modified
objects_unjoined: []
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 576270
  - 659464
systems:
  - development
quote: null
joined_against:
  major: "30"
  commit: d2abc1d2ceae394331716c8183ef60e1534c2ce0
---

# #14135 [Job Queue] Don't cancel the executed task when scheduling the next run

> When the Job Queue schedules the next run after a successful recurring run or a retry, it no longer sends a platform cancel for the task that is still executing. System Task ID is still cleared, and other task IDs are still cancelled, which cuts redundant cancellation notifications.

[Pull request](https://github.com/microsoft/BCApps/pull/14135) · merged into `main` (BC30) on 2026-11-17 by darjoo · 4 files (+141 -3), 3 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- Executed tasks are no longer cancelled when the next run is scheduled
- New internal FinalizeRun overload preserves the executed task ID
- CancelTask still clears System Task ID but skips platform cancel for executing tasks
- Replacement tasks and other scenarios still cancelled as before
- No public API or event signature changes
- Behaviour changes for users or extensions.

## AL objects touched

- [Codeunit 448 "Job Queue Dispatcher"](../../objects/codeunit/448.md), Base Application: modified
- [Table 472 "Job Queue Entry"](../../objects/table/472.md), Base Application: modified
- [Codeunit 450 "Job Queue Error Handler"](../../objects/codeunit/450.md), Base Application: modified

## Context

- Work items: AB#576270, AB#659464
- Labels: Team: Integrations
- Systems: development

## Possibly related

No source states these links: they share an object, a model read them, or a person found the same subject.

- [Job queue](https://learn.microsoft.com/dynamics365/business-central/dev-itpro/developer/devenv-job-queue) — possibly related: touches Codeunit 448 "Job Queue Dispatcher"
- [Schedule jobs to run automatically](https://learn.microsoft.com/dynamics365/business-central/admin-job-queues-schedule-tasks) — possibly related: Explains job queue scheduling and recurring task execution that the fix addresses. (model-linked)

Source: metadata of a merged pull request in microsoft/BCApps (bcapps): title, labels, changed paths and counts, with a summary in our words. No source text and no description beyond one short quote (D10, D61).
