# Job States

## Comparison between SGE and DRMAA

Category | State | SGE Representation | DRMAA state
--- | --- | --- | ---
Pending | pending | qw | QUEUED_ACTIVE
pending, user hold | hqw | USER_ON_HOLD
pending, system hold | hqw | SYSTEM_ON_HOLD
pending, user and system hold | hqw | USER_SYSTEM_ON_HOLD
pending, user hold, re-queue | hRwq | USER_ON_HOLD
pending, system hold, re-queue | hRwq | SYSTEM_ON_HOLD
pending, user and system hold, re-queue | hRwq | USER_SYSTEM_ON_HOLD
Running | running | r, t | RUNNING
running, re-run | Rr, Rt | RUNNING
Suspended | job suspended | s, ts | USER_SUSPEND
queue suspended | S, tS | SYSTEM_SUSPEND
queue suspended by alarm | T, tT | SYSTEM_SUSPEND
all suspended with re-run | Rs, Rts, RS, RtS, RT, RtT | SYSTEM_SUSPEND
Error | all pending states with error | Eqw, Ehqw, EhRqw | FAILED
Deleted | all running and suspended states with deletion | dr, dt, dRr, dRt, ds, dS, dT, dRs, dRS, dRT | same as equivalent DRMAA states without the “d”