Remaining edges when cancelling queued work

Open
#335 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
47/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
mysql, postgresql, rust

Research direction

Start by reading the changes for #327 and trace how queued count cancellations are handled for PostgreSQL and MySQL. Find the queue and cancellation entry points, then inspect the relevant tests and documentation. Done means a cancelled count gets an immediate answer wherever it sits in the queue, PostgreSQL's late-cancel window is narrowed where possible, and the remaining protocol limitation is documented.

Written by the indexing model from the issue text.

Description

bug roadmap
Summary

Two remaining edges of cancelling, after the fixes for #327:

  • PostgreSQL: a cancel request cannot name the statement it is meant for, so a cancel that arrives late can stop the next statement. This window is now narrower, and the protocol does not allow removing it completely.
  • MySQL: when several counts are queued behind an open result, cancelling one that is not first in the queue gets no immediate answer; the session closes after 60 seconds, which ends an open transaction.
Plan

Answer a cancelled count at once wherever it sits in the queue. For PostgreSQL, narrow the window further where possible and say what remains in the docs.

Plan history
  • 2026-11-11: Issue opened.
Dominant language
Rust
Stars
166
Forks
8
Avg merge
4h 24m
Merged PRs (30d)
291

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from DokaDev/datarig

All issues in DokaDev/datarig

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.