Commit 596c82e6 authored by Michael Salim's avatar Michael Salim

qsub jobs with tilde (~) expand to $HOME

parent 1a6a0526
......@@ -307,9 +307,10 @@ auto timeout retry: {self.auto_timeout_retry}
def app_cmd(self):
if self.application:
app = ApplicationDefinition.objects.get(name=self.application)
return f"{app.executable} {self.application_args}"
line = f"{app.executable} {self.application_args}"
else:
return self.direct_command
line = self.direct_command
return ' '.join(os.path.expanduser(w) for w in line.split())
def get_children(self):
return BalsamJob.objects.filter(parents__icontains=str(self.pk))
......
......@@ -49,7 +49,7 @@ def main(job_queue, status_queue, lock):
status_queue.put(s)
buf = StringIO()
print_exc(file=buf)
logger.exception("Caught BalsamTransitionError:\n%s", buf.getvalue())
logger.exception("Caught BalsamTransitionError:\n%s\n", buf.getvalue())
logger.exception(f"Marking job {job.cute_id} as FAILED")
except:
buf = StringIO()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment