# Can we limit parallel executions in AWX/Ansible

**URL:** <https://forum.ansible.com/t/can-we-limit-parallel-executions-in-awx-ansible/36121>\
**Category:** AWX Project\
**Tags:** awx\
**Created:** [December 16, 2021, 10:20am UTC](https://forum.ansible.com/t/can-we-limit-parallel-executions-in-awx-ansible/36121 "2021-12-16T10:20:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ankit2](https://avatars.discourse-cdn.com/v4/letter/a/ea5d25/32.png) [@Ankit2](https://forum.ansible.com/u/Ankit2)\
**Post date:** [December 16, 2021, 10:20am UTC](https://forum.ansible.com/t/can-we-limit-parallel-executions-in-awx-ansible/36121/1 "2021-12-16T10:20:44Z")

</div>

I am using AWX 15.0.1 and Ansible 2.9.x (not upgraded to latest version due to docker limitation) on RHEL7. Recently we have started facing CPU thresholds due to which jobs either get stuck or fail in AWX/ansible. I know there’s a way to set forks per job/playbook in AWX and Ansible but that is limited to single playbook. Can we set a max number jobs which can be executed parallelly in case there are multiple users executing jobs. This is to stop breaching CPU threshold for the VM where AWX resides.

If there is no direct solution, can anyone please suggest a workaround to avoid CPU spikes?

---

<div class="post-metadata">

**Author:** ![Seth\_Foster](https://avatars.discourse-cdn.com/v4/letter/s/49beb7/32.png) [@Seth\_Foster](https://forum.ansible.com/u/Seth_Foster)\
**Post date:** [January 5, 2022, 9:35pm UTC](https://forum.ansible.com/t/can-we-limit-parallel-executions-in-awx-ansible/36121/2 "2022-01-05T21:35:24Z")

</div>

see [https://docs.ansible.com/ansible-tower/3.8.2/html/userguide/jobs.html#cpu-relative-capacity](https://docs.ansible.com/ansible-tower/3.8.2/html/userguide/jobs.html#cpu-relative-capacity)

Namely, you can limit the number of jobs that are running by lowering the SYSTEM\_TASK\_FORKS\_CPU in your settings file.
