Parallelism Parametrization

Hi all,

Wondering if it’s possible to pass the parallelism for a job through from the environment?
For example:

version: 2.1

jobs:
    temp-job:
        description: "my custom job"
        executor: docker-executor
        parameters:
          par:
            type: integer
            default: 1
        parallelism: << parameters.par >>
        steps:
          - run:  echo Hello there

workflows:
    temp-workflow:
        jobs:
            - temp-job:
                par: $TESTING_PARALLELISM

Will fail validation with the message:

Error: Error calling workflow: 'temp-workflow'
Error calling job: 'temp-job'
Type error for argument par: expected type: integer, actual value: "$PAR" (type string)

Thanks for any help

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.