# Skipping Step Based on Agent Queue

**URL:** <https://forum.buildkite.community/t/skipping-step-based-on-agent-queue/3619>\
**Category:** Pipelines\
**Created:** [March 28, 2024, 2:53pm UTC](https://forum.buildkite.community/t/skipping-step-based-on-agent-queue/3619 "2024-03-28T14:53:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kcnakamura](https://avatars.discourse-cdn.com/v4/letter/k/7feea3/32.png) [@kcnakamura](https://forum.buildkite.community/u/kcnakamura)\
**Post date:** [March 28, 2024, 2:53pm UTC](https://forum.buildkite.community/t/skipping-step-based-on-agent-queue/3619/1 "2024-03-28T14:53:30Z")

</div>

Hello,

I’m currently trying to build a pipeline that runs on both local and cluster, which will cause slight differences in the pipeline. I was trying to make one pipeline and use two different queues named “local” and “cluster” to deferenciate between what steps to run.

My current problem is that I cannot figure out a way to skip a step based on the queue tag of the current running agent. I know that since queue is not a variable, I cannot use “queue == local,” but I am unsure how to retrieve the queue tag.

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![stephanie.atte](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.buildkite.community/stephanie.atte/32/1357_2.png) [@stephanie.atte](https://forum.buildkite.community/u/stephanie.atte)\
**Post date:** [March 28, 2024, 5:38pm UTC](https://forum.buildkite.community/t/skipping-step-based-on-agent-queue/3619/2 "2024-03-28T17:38:38Z")

</div>

Hey @kcnakamura Welcome to our Community!

Just to confirm local and cluster are just queue names and they aren’t referring to actually using clustered and unclustered agents on the pipeline at a time. If assigning a pipeline to a cluster then we can’t run the jobs with unclustered agents.

You can have multiple tags (queues) on the agents and if the job matches one of the queues then it should run on that queue. These are the [variables](https://buildkite.com/docs/pipelines/conditionals#variable-and-syntax-reference-variables) supported for step conditionals. So unfortunately will not support that.
