Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion rubra/run_stage.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
from logger import get_logger, log_info
from config import get_config, get_command, get_stage_options
from ruffus.drmaa_wrapper import run_job, error_drmaa_job
import drmaa

GLOBAL_DRMAA_SESSION = None

Expand Down Expand Up @@ -42,6 +41,7 @@ def distributedCommand(stage, command, options):
# initialise drmaa session the first time this is called
if GLOBAL_DRMAA_SESSION is None:
try:
import drmaa
GLOBAL_DRMAA_SESSION = drmaa.Session()
GLOBAL_DRMAA_SESSION.initialize()
except RuntimeError as e:
Expand Down