Skip to content

add a way to inject metadata into oban jobs #218

Description

@kevinschweikert

Code of Conduct

  • I agree to follow this project's Code of Conduct

AI Policy

  • I agree to follow this project's AI Policy, or I agree that AI was not used while creating this issue.

Is your feature request related to a problem? Please describe.

I thought read_metadata would allow we to inject metadata into the job like documented in the options for https://oban.hexdocs.pm/Oban.Job.html#new/2
But it just passes the metadata into the trigger action and this would only allow us to manipulate job args which influence uniqueness checks.

Describe the solution you'd like

a way to inject oban metdata options into a job. this also would help job introspection in the oban web dashboard (see screenshot).
Maybe in the same change, rename read_metadata in something else to not confuse the two concepts.

Describe alternatives you've considered

Additional context

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions