Skip to content

fix: end tracking of stuck CANCELING tasks #437

Closed

Description

@uniqueg

Part of #416 (smaller findings of the 0.5.0 review). Needs a decision.

Only a final state or a 404 ends the tracking of a task being canceled, so a decommissioned or permanently failing backend leaves it polled indefinitely, and another cancel changes nothing.

Possible fix: a setting such as polling.max_cancel_time, or document the remedy in the database.

Acceptance criteria

  • Decided and implemented (or documented): how tracking of a CANCELING task ends when its backend never answers.

Activity

  1. added this to the v0.6.0 milestone on Nov 5, 2026
  2. added
    priority: low
    status flag: discuss
    status: triage
    type: bug
    on Nov 5, 2026
  3. added
    workload: hours
    on Nov 5, 2026
  4. uniqueg commented on Nov 6, 2026

    @uniqueg
    MemberAuthor

    Decision: add a setting polling.max_cancel_time with a default (for example 1 hour). After that time, mark the task SYSTEM_ERROR, stop tracking it and log a warning. Document the setting.

  5. added
    status: in progress
    and removed
    status flag: discuss
    status: triage
    on Nov 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority: lowstatus: in progresstype: bugworkload: hours

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions