Skip to content

Commit

Permalink
Suppress squeue stderr
Browse files Browse the repository at this point in the history
  • Loading branch information
linsword13 committed Dec 18, 2024
1 parent 94e5b98 commit ee99c5b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ee99c5b

Please sign in to comment.