Skip to content

Commit

Permalink
Bring in updates from CLI runner in Galaxy.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmchilton committed May 5, 2014
1 parent defe3a3 commit 0eceb9e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lwr/managers/util/cli/job/torque.py
Expand Up @@ -20,7 +20,8 @@
from logging import getLogger
log = getLogger(__name__)

argmap = {'Execution_Time': '-a',
argmap = {'destination': '-q',
'Execution_Time': '-a',
'Account_Name': '-A',
'Checkpoint': '-c',
'Error_Path': '-e',
Expand Down Expand Up @@ -122,6 +123,7 @@ def __get_job_state(self, state):
'E': job_states.RUNNING,
'R': job_states.RUNNING,
'Q': job_states.QUEUED,
'C': job_states.OK
}.get(state)
except KeyError:
raise KeyError("Failed to map torque status code [%s] to job state." % state)

0 comments on commit 0eceb9e

Please sign in to comment.