How to clear dead Ray tasks?

  • Low: It annoys or frustrates me for a moment.


I started some parallel tasks using Ray and killed the top-level script before all tasks were finished. it seems that the remaining tasks that were not finished stay in the ray status output:

 0.0/40.0 CPU
 0.00/166.037 GiB memory
 0.00/75.150 GiB object_store_memory

 {'CPU': 1.0}: 98457+ pending tasks/actors

Is there a way to clear out these dead tasks so that the pending tasks start from zero again? Thanks!

What’s the version of Ray you are using? It is supposed to be cleaned up when you terminate your script.

Ray version 2.0.1. The dead tasks are still there after 2 days.