Blog Archive

Sunday, October 2, 2016

How to restart / resubmit the SGE job in Eqw status

[Rocks-Discuss] job in error state will not restart:



   1146 0.55500 SomeTask user        Eqw  10/02/2016 19:24:09                                    1 2,17

qmod -cj jobnumber

For example,

qmod -cj 1146.2

qmod -cj 1146.17


If you want to resubmit a job in 'r' status, you can use:

qmod -rj jobnumber





Reference:

1) Usage and qmod (type qmod in terminal will display the following)

qmod
SGE 8.1.8
usage: qmod [options]
   [-c job_wc_queue_list]  clear error state
   [-cj job_list]          clear job error state
   [-cq wc_queue_list]     clear queue error state
   [-d wc_queue_list]      disable
   [-e wc_queue_list]      enable
   [-f]                    force action
   [-help]                 print this help
   [-r job_wc_queue_list]  reschedule jobs (running in queue)
   [-rj job_list]          reschedule jobs
   [-rq wc_queue_list]     reschedule all jobs in a queue
   [-s job_wc_queue_list]  suspend
   [-sj job_list]          suspend jobs
   [-sq wc_queue_list]     suspend queues
   [-us job_wc_queue_list] unsuspend
   [-usj job_list]         unsuspend jobs
   [-usq wc_queue_list]    unsuspend queues

job_wc_queue_list          {job_tasks|wc_queue}[{','|' '}{job_tasks|wc_queue}[{','|' '}...]]
job_list                   {job_tasks}[{','|' '}job_tasks[{','|' '}...]]
job_tasks                  {{job_id'.'task_id_range}|job_name|pattern}[' -t 'task_id_range]
task_id_range              task_id['-'task_id[':'step]]
wc_cqueue                  wildcard expression matching a cluster queue
wc_host                    wildcard expression matching a host
wc_hostgroup               wildcard expression matching a hostgroup
wc_qinstance               wc_cqueue@wc_host
wc_qdomain                 wc_cqueue@wc_hostgroup
wc_queue                   wc_cqueue|wc_qdomain|wc_qinstance
wc_queue_list              wc_queue[','wc_queue[','...]]


2)
https://lists.sdsc.edu/pipermail/npaci-rocks-discussion/2006-December/022877.html


No comments:

Post a Comment