ComfyUI/tests-unit/jobs_cancel_test
Matt Miller dabe0d56a4
Some checks are pending
Python Linting / Run Ruff (push) Waiting to run
Python Linting / Run Pylint (push) Waiting to run
fix: resolve review feedback on cancel endpoints
- Guard cancel_job() against TOCTOU: when dequeue() returns False the
  pending job left the queue between snapshot and delete; return
  CANCEL_UNKNOWN so callers never report cancelled=True for a remove
  that did not happen.
- Validate each job_ids element in the batch cancel endpoint before
  any queue access; unhashable or non-UUID values now return 400
  instead of raising TypeError (500).
- Update batch HTTP tests to use canonical UUID ids (required now that
  the endpoint validates id format) and add tests for the new guards.
2026-06-18 11:04:09 -07:00
..
__init__.py Add jobs-namespace cancel endpoints 2026-06-15 18:25:38 -07:00
jobs_cancel_test.py fix: resolve review feedback on cancel endpoints 2026-06-18 11:04:09 -07:00