Skip to content

fleet dispatcher: offline registrations under a retired label are never deleted #57

Closed

Description

@scuttletoby

Found in review of #53 (correctness lens, round 1): #53 (comment). Left in the fix round (see the #53 description, fix table).

What: the dispatcher cleans up offline runner registrations by matching <current label>-<job id>. After a pool's label is renamed (old label moved to retired_labels), offline registrations made under the old label never match, so they are never deleted.

Effect: clutter only. It fails safe; no job is misrouted.

Why not fixed yet: a safe fix needs each pool's old labels. Two dispatchers may serve different pools, and one must never delete the other's fresh registrations.

Suggested fix: for each pool, also match <retired label>-<job id> for labels that pool itself retired. Add a test where two dispatchers with different pools run side by side.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions