dead nodes are not treated by the return_to_idle.sh script, add the command to mark these nodes down. `scontrol update nodename=$(sinfo --dead | grep idle~ | cut -d'~' -f 2 | xargs | sed 's/ /,/g') state=down reason=dead`