# Running tasks only on workers

**URL:** <https://discuss.ray.io/t/running-tasks-only-on-workers/13184>\
**Category:** Ray Core\
**Created:** [December 17, 2023, 5:46am UTC](https://discuss.ray.io/t/running-tasks-only-on-workers/13184 "2023-12-17T05:46:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![venom\_stark](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/venom_stark/32/5500_2.png) [@venom\_stark](https://discuss.ray.io/u/venom_stark)\
**Post date:** [December 17, 2023, 5:46am UTC](https://discuss.ray.io/t/running-tasks-only-on-workers/13184/1 "2023-12-17T05:46:55Z")

</div>

**How severe does this issue affect your experience of using Ray?**

- High: It blocks me to complete my task.

Is there a way to run my tasks/functions only on workers and not on my head node? Basically I want to use my head node just to give instructions and not do any kind of processing/computation.

Thank you

---

<div class="post-metadata">

**Author:** ![sangcho](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/sangcho/32/425_2.png) [@sangcho](https://discuss.ray.io/u/sangcho)\
**Post date:** [December 18, 2023, 10:18pm UTC](https://discuss.ray.io/t/running-tasks-only-on-workers/13184/2 "2023-12-18T22:18:07Z")

</div>

the typical pattern is to use num-cpus=0 when you start a head node.

Other option is to add custom resources to all worker nodes ({“worker”:1 }), and require this to your tasks/actors
