(2017年の過去記事です)
condor_rmのヘルプを見るとタイトルと関係あるオプションを見つけてしまった
(スペースとタブが潰れたので見にくい・・・)
Usage: condor_rm [options] [constraints]
where [options] is zero or more of:
-help Display this message and exit
-version Display version information and exit
-long Display full result classad
-totals Display success/failure totals
-name schedd_name Connect to the given schedd
-pool hostname Use the given central manager to find daemons
-addr Connect directly to the given "sinful string"
-reason reason Use the given RemoveReason
-forcex Force the immediate local removal of jobs in the X state
(only affects jobs already being removed)
and where [constraints] is one of:
cluster.proc Remove the given job
cluster Remove the given cluster of jobs
user Remove all jobs owned by user
-constraint expr Remove all jobs matching the boolean expression
-all Remove all jobs (cannot be used with other constraints)
where [options] is zero or more of:
-help Display this message and exit
-version Display version information and exit
-long Display full result classad
-totals Display success/failure totals
-name schedd_name Connect to the given schedd
-pool hostname Use the given central manager to find daemons
-addr
-reason reason Use the given RemoveReason
-forcex Force the immediate local removal of jobs in the X state
(only affects jobs already being removed)
and where [constraints] is one of:
cluster.proc Remove the given job
cluster Remove the given cluster of jobs
user Remove all jobs owned by user
-constraint expr Remove all jobs matching the boolean expression
-all Remove all jobs (cannot be used with other constraints)
単体のジョブを消すときは、
condor_rm [ID]
自分が投下したジョブをすべて止めるときは、condor_rm [user name]
または
condor_rm -all
または
condor_rm -all
condor_rm -constraint
で、条件文を書いてそれにmatchしたジョブだけを取り消せるらしいちなみに-constraintは-constと省略することもできるっぽい
条件文は、
condor_rm -const 'ClusterId > 3880'
な感じで書くcondor_qで表示されるジョブIDはClusterIdと呼ばれるらしい(CとIは大文字)
この変数名を探すのにかなり苦労したが、
condor_q -long | grep "3571"
みたいな感じで調べた
他にもやたら変数がセットされてるっぽいので、それらも使えるかもしれない(試してないけど)
ランキング参加中です
↓クリックしていただけると嬉しいです〜