Skip to content

Commit

Permalink
Merge pull request galaxyproject#2466 from nsoranzo/release_16.04_fix…
Browse files Browse the repository at this point in the history
…_for_2463

[16.04] Delay import of DrmaaSessionFactory after runner initialization
  • Loading branch information
martenson committed Jun 8, 2016
2 parents 10a3f23 + 9e5419f commit 8983e43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/galaxy/jobs/runners/drmaa.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
from galaxy.jobs.handler import DEFAULT_JOB_PUT_FAILURE_MESSAGE
from galaxy.jobs.runners import AsynchronousJobState, AsynchronousJobRunner
from galaxy.util import asbool
from pulsar.managers.util.drmaa import DrmaaSessionFactory

drmaa = None

Expand Down Expand Up @@ -62,6 +61,7 @@ def __init__( self, app, nworkers, **kwargs ):
'feature, please install it or correct the '
'following error:\n%s: %s' %
(exc.__class__.__name__, str(exc)))
from pulsar.managers.util.drmaa import DrmaaSessionFactory

# Subclasses may need access to state constants
self.drmaa_job_states = drmaa.JobState
Expand Down

0 comments on commit 8983e43

Please sign in to comment.