Skip to content

Suggest adding the process "when:" as a process directive. #2518

@mahesh-panchal

Description

@mahesh-panchal

New feature

The proposal is to add when as a process directive as an alternative to the process when: block.

Usage scenario

It allows configuration of when a process executes directly from the configuration, allowing a set of processes to be labeled and then executed as a set, for example running a set of processes that use GPU's otherwise use processes that use CPU's.
Alternatively, running a process if a param's is set without putting it directly in the process definition.

Suggest implementation

Using the same functionality of a when: but that conditional would be in a closure, while otherwise it would be resolved directly in the config.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions