Skip to content

plain jobs run should support short class names #59

Description

@davegaeddert

plain jobs run SendAdminReport fails with KeyError: 'SendAdminReport' because the registry keys jobs by their full module path (e.g. app.organizations.jobs.SendAdminReport).

It would be nice if the short class name worked when it's unambiguous. If multiple jobs share the same class name, it could error with a message listing the full paths to choose from.

$ plain jobs run SendAdminReport
KeyError: 'SendAdminReport'

$ plain jobs run app.organizations.jobs.SendAdminReport
# works

Environment

  • Plain: 0.120.1
  • Python: 3.13.3
  • OS: Darwin 25.3.0

Submitted via the /plain-bug skill.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions