Skip to content

RFC: durable enqueue queue overrides — a queue_override column with designed move/retirement semantics (option A for #241) #279

Open

Description

@rcbevans

From the independent review of PR #272 (which reviewed and upheld the option-B docs-only decision for #241): the permanence design exists only as PR-body prose there; filing it so it survives the PR.

Why option A is an RFC, not a patch (verified against the code and vendored peers):

  • Permanence requires information nothing stores today: 'is this row's label an explicit producer override or just the actor's home at placement time?' is unanswerable from the row; a queue_override-style column is needed.
  • The vendor convergence (river river_job.sql:506-531 never touches queue on retry; oban likewise; queue is a fixed job attribute) exists because those systems have no movable actor. TaskQ's assignment_routed routing (every re-pend arm stamps it; dispatch routes those rows by actor_config.queue; the stranded detector groups by CASE WHEN j.assignment_routed THEN ac.queue ELSE j.queue END) is the genuine structural divergence; it is what makes move_actor_queue's left-behind tail drain through the target queue. Option A without designed move semantics would re-strand override rows on retired queues (the Stranded-jobs sweep keys on the queue label, so work stranded by actor assignment is invisible #211 regression class).
  • Scope: a migration (the pre-0.3.0 window is actively managed), both dispatch arms, the in-memory twins, the stranded detector and queues overview projections, and move/retirement semantics for rows carrying an override when the actor later moves home queues.

Current state (post-#272): overrides are documented first-placement-only (docs/guides/jobs-clients.md); neither cennan nor TAStack uses per-job overrides (verified; both use only @actor(queue=...) home queues, which the docs already recommend for their shape).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancement

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions