# Stopping pending job in a KubeRay cluster

**URL:** <https://discuss.ray.io/t/stopping-pending-job-in-a-kuberay-cluster/15653>\
**Category:** Kubernetes\
**Created:** [August 26, 2024, 9:23am UTC](https://discuss.ray.io/t/stopping-pending-job-in-a-kuberay-cluster/15653 "2024-08-26T09:23:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![stwerner97](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/stwerner97/32/6436_2.png) [@stwerner97](https://discuss.ray.io/u/stwerner97)\
**Post date:** [August 26, 2024, 9:23am UTC](https://discuss.ray.io/t/stopping-pending-job-in-a-kuberay-cluster/15653/1 "2024-08-26T09:23:50Z")

</div>

Hi, I am using a KubeRay cluster that auto scales the number of worker pods. If I start a job that increases the number of workers, but the pods is queued (e.g. volcaono queue), it is moved to the pending state. The `ray stop` command doesnt stop the job and waits for the worker to be started. I expected it to a) list the job as stopped (e.g. in the dashboard) and b) remove the auto scaled worker pod from the volcano queue.

```auto
ray job stop 09e5f53e0dd8386a
Job submission server address: <http://my-ingress-node>
Attempting to stop job '09e5f53e0dd8386a'
Waiting for job '09e5f53e0dd8386a' to exit (disable with --no-wait):
Job has not exited yet. Status: PENDING

```
