Skip to content

Allow more executor intepretations #715

@liamhuber

Description

@liamhuber

Right now we allow an instance or a creator with args and kwargs:

InterpretableAsExecutor: TypeAlias = (
StdLibExecutor | tuple[Callable[..., StdLibExecutor], tuple, dict]
)

It would be nice to also allow just the creating callable (implicit no args or kwargs) or just args/kwargs (implicit no kwargs/args) so that you can write things like wf.my_node.executor = ProcessPoolExecutor or wf.my_node.executor = (ThreadPoolExecutor, {"max_workers": 2})

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions