Skip to content

Queue semantics: TestQueue::fail_job and fail_job_dependencies diverge from documented behaviour #59

Closed

Description

@CodingAnarchy

Found during the #44 coverage work (PRs #53–#55).

  1. TestQueue::fail_job contradicts the DatabaseQueue trait. The trait documents fail_job as a terminal Failed; TestQueue instead retries the job or marks it dead. Code tested against TestQueue therefore sees different behaviour than on PostgreSQL/MySQL. The statistics scenario in the generic queue API tests currently skips TestQueue because of this. About 20 existing TestQueue tests rely on the current behaviour.
  2. PostgreSQL/MySQL fail_job_dependencies ignores the workflow failure policy, although its doc comment says it follows it (fail_fast / continue_on_failure / manual).

Fix both so that all three backends behave identically and as documented, with tests that are generic over DatabaseQueue (running on TestQueue, PostgreSQL and MySQL).

Part of #7.

🤖 Generated with Claude Code

Activity

  1. added a commit that references this issue on Oct 9, 2026
    60d0cd2
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions