Commit dcb12c65 authored by David Mendez's avatar David Mendez
Browse files

Status meeseeks: Set up env in popen params

parent c58ade03
......@@ -11,6 +11,8 @@ import subprocess
from pathlib import Path
import re
import os.path
import shlex
from datetime import datetime
import yaml
......@@ -561,9 +563,13 @@ def submit_job_to_lsf(job):
app_logging.debug(f'LSF Job ID is: {lsf_job_id}')
app_logging.debug('Going to launch Mr Meeseeks to monitor the job status')
meeseeks_command = f'CONFIG_FILE_PATH={os.getenv("CONFIG_FILE_PATH")} /app/ {}'
meeseeks_command = f'/app/ {}'
app_logging.debug(f'Mr Meeseeks command is: {meeseeks_command}')
meeseeks_process = subprocess.Popen(meeseeks_command.split(' '))
checker_env = {
app_logging.debug(f'Mr Meeseeks env is: {checker_env}')
meeseeks_process = subprocess.Popen(shlex.split(meeseeks_command), env=checker_env)
app_logging.debug(f'Mr Meeseeks summoned! PID is {}')
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