# Feature request: pause specific agents during a sweep

**URL:** <https://community.wandb.ai/t/feature-request-pause-specific-agents-during-a-sweep/7431>\
**Category:** W&B Help\
**Tags:** sweeps\
**Created:** [August 8, 2024, 4:37pm UTC](https://community.wandb.ai/t/feature-request-pause-specific-agents-during-a-sweep/7431 "2024-08-08T16:37:04Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![kad2662](https://avatars.discourse-cdn.com/v4/letter/k/ad7895/32.png) [@kad2662](https://community.wandb.ai/u/kad2662)\
**Post date:** [August 8, 2024, 4:37pm UTC](https://community.wandb.ai/t/feature-request-pause-specific-agents-during-a-sweep/7431/1 "2024-08-08T16:37:04Z")

</div>

Hi,

I would like to have the ability to pause a specific agent within a sweep, without having to pause/cancel/kill the entire sweep. Alternatively, allowing an agent to only run a specified number of times, could be a solution too.

I have seen a few similar requests/issues from about 2/3 years ago, but don’t think this has been implemented yet. Please correct me if I am wrong.

Thank you!

---

<div class="post-metadata">

**Author:** ![artsiom](https://sea2.discourse-cdn.com/flex020/user_avatar/community.wandb.ai/artsiom/32/1001_2.png) [@artsiom](https://community.wandb.ai/u/artsiom)\
**Post date:** [August 12, 2024, 2:59pm UTC](https://community.wandb.ai/t/feature-request-pause-specific-agents-during-a-sweep/7431/2 "2024-08-12T14:59:31Z")

</div>

Hi @kad2662!

Thank you for writing in! We do have a way to set a specific number of runs a sweep agent is going to run during it’s wandb sweep and it’s using the `count` [argument](https://docs.wandb.ai/ref/cli/wandb-agent#docusaurus_skipToContent_fallback), as well as the `count` [argument](https://docs.wandb.ai/ref/python/agent#docusaurus_skipToContent_fallback) using the `agent()` function.

Is this what you are looking for?

Warmly,  
Artsiom

---

<div class="post-metadata">

**Author:** ![kad2662](https://avatars.discourse-cdn.com/v4/letter/k/ad7895/32.png) [@kad2662](https://community.wandb.ai/u/kad2662)\
**Post date:** [August 13, 2024, 11:31am UTC](https://community.wandb.ai/t/feature-request-pause-specific-agents-during-a-sweep/7431/3 "2024-08-13T11:31:09Z")

</div>

Hi Artsiom,

Yes, it is.

Thanks for your response!

---

<div class="post-metadata">

**Author:** ![artsiom](https://sea2.discourse-cdn.com/flex020/user_avatar/community.wandb.ai/artsiom/32/1001_2.png) [@artsiom](https://community.wandb.ai/u/artsiom)\
**Post date:** [August 13, 2024, 2:26pm UTC](https://community.wandb.ai/t/feature-request-pause-specific-agents-during-a-sweep/7431/4 "2024-08-13T14:26:02Z")

</div>

Sweet!

Thank you for the update. Let us know if you have any follow up questions.

I’ll go ahead and close this request. If you would like to reopen the conversation, please let us know! Unfortunately, at the moment, we do not receive notifications if a thread reopens on Discourse. So, please feel free to create a new ticket regarding your concern if you’d like to continue the conversation.
