# Ray k8s cluster, cannot run new task when previous task failed

**URL:** <https://discuss.ray.io/t/ray-k8s-cluster-cannot-run-new-task-when-previous-task-failed/6459>\
**Category:** Kubernetes\
**Created:** [June 10, 2022, 4:47am UTC](https://discuss.ray.io/t/ray-k8s-cluster-cannot-run-new-task-when-previous-task-failed/6459 "2022-06-10T04:47:36Z")\
**Posts on this page:** 1\
**Showing post:** 47

<div class="post-metadata">

**Author:** ![GoingMyWay](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/goingmyway/32/1102_2.png) [@GoingMyWay](https://discuss.ray.io/u/GoingMyWay)\
**Post date:** [June 29, 2022, 1:04am UTC](https://discuss.ray.io/t/ray-k8s-cluster-cannot-run-new-task-when-previous-task-failed/6459/47 "2022-06-29T01:04:05Z")

</div>

> [@architkulkarni](#):
>
> @GoingMyWay any luck with this?

@architkulkarni , note that `components` is a private module of my project. In the workspace, I can actually import it. I do not need to install it. The following is the main directories of the code

```auto
# show workspace
$ pwd
/home/me/app
$ cd /home/me/app && tree
|-- docker
|-- myproject
| |-- src
| | |-- components
| | |-- config
| | | |-- algs
| | | `-- envs
| | |-- controllers
| | |-- envs
| | |-- learners
| | |-- pretrained
| | |-- runners
| | |-- training_methods
| | |-- train_model_ray
| | `-- utils
|-- k8s
| |-- depoly
| | `-- charts
| | `-- ray
| | |-- crds
| | `-- templates
| `-- ray_cluster
|-- scripts
| |-- cluster
| |-- run_jobs
| |-- submit_jobs
| `-- tools
| `-- utils

```

As you can see it, the `components` is in `/home/me/app/myproject/components`. Then in the workspace, I run the code

```auto
python myproject/src/main.py 

```

That is how can run the code.

---

_[View the full topic](https://discuss.ray.io/t/ray-k8s-cluster-cannot-run-new-task-when-previous-task-failed/6459)._
