diff --git a/var/ramble/repos/builtin/workflow_managers/slurm/workflow_manager.py b/var/ramble/repos/builtin/workflow_managers/slurm/workflow_manager.py index 76d67dd9a..ca7606b07 100644 --- a/var/ramble/repos/builtin/workflow_managers/slurm/workflow_manager.py +++ b/var/ramble/repos/builtin/workflow_managers/slurm/workflow_manager.py @@ -154,7 +154,7 @@ def set_run_dir(self, run_dir): def generate_query_command(self, job_id): return rf""" -status=$(squeue -h -o "%t" -j {job_id}) +status=$(squeue -h -o "%t" -j {job_id} 2>/dev/null) if [ -z "$status" ]; then status=$(sacct -j {job_id} -o state -X -n | xargs) fi