Skip to content

Make WorkContext.env customize-able and propagate-able #465

Description

@simahawk

ATM the env of the WorkContext comes from the collection.
This is sub-optimal because you cannot customize it for specific cases (eg: by setting a ctx key before calling a method).

Proposal: self.env should be assigned on __init__ and got from kw args. Defaults to collection.env if not available.
It should be added to propagate-able args too.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementno staleUse this label to prevent the automated stale action from closing this PR/Issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions