Use qdel to delete all my jobs at once, not one at a time

前端 未结 9 1544
悲哀的现实
悲哀的现实 2020-12-22 18:42

This is a rather simple question but I haven\'t been able to find an answer.

I have a large number of jobs running in a cluster (>20) and I\'d like to delete them al

相关标签:
9条回答
  • 2020-12-22 19:38

    Just use the following command:

    qdel all           
    

    It will cancel all jobs running on cluster.

    0 讨论(0)
  • 2020-12-22 19:39

    Another possibility is to do qdel all. It deletes all jobs from everyone. When you don't have access for other people's job, it deletes only your jobs.

    It is not the most beautiful solution, but it is surely the shortest!

    0 讨论(0)
  • 2020-12-22 19:40
    # Delete all jobs owned by the current user.
    # 
    # Command breakdown:
    # ------------------
    #
    # qselect
    # -u selects all jobs that belong to the current user
    # -s EHQRTW selects all job states except for Complete
    #
    # xargs
    # --no-run-if-empty Do not run qdel if the result set is empty
    #                   to avoid triggering a usage error.
    #
    # qdel
    # -a delete jobs asynchronously
    #
    # The backslashes are a trick to avoid matching any shell aliases.
    
    \qselect -u $(whoami) -s EHQRTW | \xargs --no-run-if-empty \qdel -a
    
    0 讨论(0)
提交回复
热议问题