Skip to content

Accessing river.Workers from the river.Client (or maybe all river.Config) #1167

@mitar

Description

@mitar

So I initialize river.Client in a different place where I then register workers. It looks like currently I have to both create river.Workers, pass it to river.Client as river.Config, and then I have now pass both client and workers around to be able to both submit jobs and register workers. It would be nice if I could obtain workers from client instance. Or maybe even simply, to be able to access passed config stored inside river.Client. Maybe river.Client could get Config method returning river.Config?

Metadata

Metadata

Assignees

No one assigned

    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