This commit is contained in:
M Bernt
2020-01-22 16:16:45 +01:00
parent d6a077c75e
commit db5bd4fac3
2 changed files with 6 additions and 2 deletions
+1 -1
View File
@@ -2092,7 +2092,7 @@ class JobWrapper(HasResourceParameters):
log.debug('(%s) Changing ownership of working directory with: %s' % (job.id, ' '.join(cmd)))
p = subprocess.Popen(cmd, shell=False, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
stdout, stderr = p.communicate()
stdout, stderr = unicodify(stdout).strip(), unicodify(stdout).strip()
stdout, stderr = unicodify(stdout).strip(), unicodify(stderr).strip()
if p.returncode != 0:
log.error('external script failed.')
log.error('stdout was: %s' % stdout)
+5 -1
View File
@@ -31,7 +31,11 @@ import subprocess
import time
from galaxy.jobs.runners.drmaa import DRMAAJobRunner
from galaxy.util import size_to_bytes, unicodify
from galaxy.util import (
size_to_bytes,
unicodify
)
log = logging.getLogger(__name__)
__all__ = ('UnivaJobRunner',)