KamoCRM

A deleted task takes back its comment notifications too

FixKBService
Shipped
September 27, 2026 at 5:52 AM UTC
Author
Kamo
Commit
a7fdc7e

Deleting a task (or clearing done tasks, or deleting their list) withdrew only its TASK_ASSIGNED and TASK_DUE notices. Every TASK_COMMENTED about it stayed in its recipients' lists, opening "This task is gone" and keeping a preview of a comment deleted with the task (found by SP06's verification in production). The delete paths now read the task's comment ids first (the rows cascade with the task; one snapshot, reads before writes) and TaskEvents.withdrawGone takes back the assignment, the due notice and every <itemId>:<commentId> TASK_COMMENT notice, the comments' in ONE executor job so a long thread never runs on the request thread. Marking a task done still withdraws only assignment and due.

All changes

Like what you see shipping?

All of it arrives in your workspace on its own. Start on the free plan and read this page again in a month.

Start Free ForeverView Pricing