Skip to content

Consider unifying job tag types (String description vs u64 filter) #17488

Closed

Description

@andrewgazelka

Problem

The jobs system (in main) has two completely different "tag" concepts that both use --tag but with different types:

job spawn --tag "my task" { ... }   # String
job send 0 --tag 42                  # Integer (u64)

This is confusing because:

  1. Same flag name, different types
  2. Same flag name, completely different semantics (job label vs message filter)
  3. Easy to mix up which --tag does what

Current State (main branch)

Concept Type Flag Purpose
Job description Option<String> job spawn --tag Label shown in job list
Message filter u64 job send --tag / job recv --tag Filter messages in mailbox

Source references (main):

Suggestion

Rename one of them so users don't confuse them:

Option A - Rename job description:

job spawn --label "my task" { ... }  # or --name, --desc
job send 0 --tag 42

Option B - Rename message filter:

job spawn --tag "my task" { ... }
job send 0 --filter 42               # or --channel, --topic

Either way, having two --tag flags with different types/semantics is a footgun.

cc @cosineblast

Activity

  1. cosineblast commented on Feb 4, 2026

    @cosineblast
    Contributor

    I think it's totally okay to rename the job tag thing to something like 'name' or 'descriptor'

  2. cosineblast commented on Feb 4, 2026

    @cosineblast
    Contributor

    I'd like to get the assign for this if possible

  3. fdncred commented on Feb 4, 2026

    @fdncred
    Contributor

    assigned it to you @cosineblast. Thanks for jumping in.

  4. kronberger-droid commented on Nov 16, 2026

    @kronberger-droid
    Contributor

    Fixed by #17496: job spawn takes --description for the job's label now, and --tag is only the integer message filter on job send and job recv.

    AI:X EXECUTE

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

Metadata

Metadata

Assignees

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