Skip to content

Support for convenient meta updates #1202

Open
@up2jj

Description

@up2jj

We have many long-running jobs that spawn sub-jobs. We would like to track the spawning progress at a low cost and are wondering if the meta is a good place to record progress and other helpful information.

Currently, Oban does not have any top-level mechanism to update meta. I know that pure Ecto can be used for updates, but it seems to me that a helper built into Oban itself would be a much more elegant solution encapsulating the configuration, with no direct reference to a specific Oban repo:

Oban.update_meta(job, fn meta -> ... end)

Using meta along with Oban.Web would significantly improve observability and be very helpful in debugging potential issues in our case.

I would be happy to take on the task of adding such a helper, with your guidance and assistance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:ossRelated to Oban OSSkind:enhancementNew feature or requestnote:discussionDetails or approval are up for discussion

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions