From ee99c5b06c8cce5cad73d9dd19ee6dc606dd9b88 Mon Sep 17 00:00:00 2001 From: Lin Guo Date: Wed, 18 Dec 2024 04:36:33 +0000 Subject: [PATCH] Suppress squeue stderr --- .../repos/builtin/workflow_managers/slurm/workflow_manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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