# Executor per-workflow

**URL:** <https://discuss.circleci.com/t/executor-per-workflow/28197>\
**Category:** Orbs\
**Created:** [February 5, 2019, 8:56pm UTC](https://discuss.circleci.com/t/executor-per-workflow/28197 "2019-02-05T20:56:51Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![tsloughter](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/tsloughter/32/15142_2.png) [@tsloughter](https://discuss.circleci.com/u/tsloughter)\
**Post date:** [February 5, 2019, 8:56pm UTC](https://discuss.circleci.com/t/executor-per-workflow/28197/1 "2019-02-05T20:56:51Z")

</div>

I’ve got an orb, [https://circleci.com/orbs/registry/orb/tsloughter/rebar3](https://circleci.com/orbs/registry/orb/tsloughter/rebar3), with a number of jobs that are best run in parallel. However, configuring this makes for a verbose and confusing setup if it doesn’t use the default executor image, or worse want to run against multiple images, because each job must define the executor.

Maybe I’m missing a better way to do this, but if not, it would be great if an executor could be set to be used by all jobs in a workflow (unless explicitly included in the job definition).

---

<div class="post-metadata">

**Author:** ![rose](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/rose/32/7816_2.png) [@rose](https://discuss.circleci.com/u/rose)\
**Post date:** [February 6, 2019, 4:16pm UTC](https://discuss.circleci.com/t/executor-per-workflow/28197/2 "2019-02-06T16:16:13Z")

</div>

@tsloughter great question!

Support for Workflows features in Orbs is currently lacking in general. I don’t think there’s currently an Orbs-native way to do this.

That said, you can easily DRY up your `config.yml` code by using YAML anchors:

> **[CircleCI Hacks: Reuse YAML in Your CircleCI Config With… YAML?](https://circleci.com/blog/circleci-hacks-reuse-yaml-in-your-circleci-config-with-yaml/)**
>
> September 2018 Update: This blog post was written to demonstrate how to make a CircleCI configuration file more DRY using a native YAML feature called Anchors and Aliases. Now CircleCI Configuration v2.1 can accomplish this goal. Check it...

---

<div class="post-metadata">

**Author:** ![tsloughter](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/tsloughter/32/15142_2.png) [@tsloughter](https://discuss.circleci.com/u/tsloughter)\
**Post date:** [February 8, 2019, 12:45am UTC](https://discuss.circleci.com/t/executor-per-workflow/28197/3 "2019-02-08T00:45:00Z")

</div>

Thanks. Yea, yaml anchors helps a little.

---

<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:** [February 18, 2019, 12:45am UTC](https://discuss.circleci.com/t/executor-per-workflow/28197/4 "2019-02-18T00:45:00Z")

</div>

Closed on February 18, 2019, 12:45am UTC

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