5

The command 'qstat -a' outputs lots of lines of information for completed jobs all with status 'C'. It seems that they will stay forever. How to cleanup these unneeded job information since those jobs are already 'completed'? Thanks!

user2884311
  • 51
  • 1
  • 2
  • Welcome to SO, user2884311. – Brian Oct 15 '13 at 23:13
  • Possible duplicate of [Use qdel to delete all my jobs at once, not one at a time](https://stackoverflow.com/questions/28857807/use-qdel-to-delete-all-my-jobs-at-once-not-one-at-a-time) – mrk Jun 20 '17 at 12:10

2 Answers2

3

This is controlled by the qmgr parameter keep_completed. keep_completed specifies a number of seconds after completion a job should continue to be visible. If you would like to immediately delete a job without waiting this amount of time, you can execute

qdel -p <jobid>
dbeer
  • 6,963
  • 3
  • 31
  • 47
2

Type qstat -r to get only the running jobs

Claude COULOMBE
  • 3,434
  • 2
  • 36
  • 39