# Parallelism Parametrization

**URL:** <https://discuss.circleci.com/t/parallelism-parametrization/27806>\
**Category:** Build Environment\
**Tags:** circle-yml\
**Created:** [January 21, 2019, 1:38am UTC](https://discuss.circleci.com/t/parallelism-parametrization/27806 "2019-01-21T01:38:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lfox](https://avatars.discourse-cdn.com/v4/letter/l/9d8465/32.png) [@lfox](https://discuss.circleci.com/u/lfox)\
**Post date:** [January 21, 2019, 1:38am UTC](https://discuss.circleci.com/t/parallelism-parametrization/27806/1 "2019-01-21T01:38:30Z")

</div>

Hi all,

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

```yaml
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:

```auto
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

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/circleci/original/3X/5/1/511608acda8e85906e15909b57bd0a46c1dbe291.png) [@system](https://discuss.circleci.com/u/system)\
**Post date:** [April 21, 2019, 1:38am UTC](https://discuss.circleci.com/t/parallelism-parametrization/27806/2 "2019-04-21T01:38:31Z")

</div>

Closed on April 21, 2019, 1:38am UTC

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