Skip to content

Verify completed-task cancel race (#140) is resolved on main; close superseded PR #180 #190

Description

@millsmillsymills

Summary

Verify the completed-task cancel race (#140) is actually resolved on current main, then close the now-superseded draft PR #180.

Background

Draft PR #180 fixes the race in tests/mandatory/protocol/test_tasks_cancel_method.py, but that file no longer exists on main — the tests/mandatory/ tree was restructured into tests/compatibility/ (commit 2bb20c2), which is why the PR is CONFLICTING. The race appears already handled by the replacement coverage in tests/compatibility/core_operations/test_task_lifecycle.py:

  • TestCancelTask.test_cancel_task_returns_updated_state (CORE-CANCEL-001) tolerates the terminal-state race.
  • TestCancelTask.test_cancel_terminal_task_returns_error (CORE-CANCEL-002) asserts -32002 TaskNotCancelableError on terminal tasks.

Suggested work

Follow-up from review of #180.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions