Commits (2)
......@@ -69,13 +69,14 @@ trigger-mlmc:
- "curl -X POST -F token=${CI_JOB_TOKEN}
-F ref=feature https://git.scc.kit.edu/api/v4/projects/12667/trigger/pipeline"
#trigger-tutorial:
# stage: downstream
#
# only:
# - feature
#
# script:
# - "curl -X POST -F token=da058651d5a98da8746e01eaf4043b
# -F ref=master https://git.scc.kit.edu/api/v4/projects/12670/trigger/pipeline"
# -F "variables[RUN_NIGHTLY_BUILD]=true" \
\ No newline at end of file
trigger-tutorial:
stage: downstream
only:
- feature
script:
- "curl -X POST -F token=${CI_JOB_TOKEN}
-F ref=master https://git.scc.kit.edu/api/v4/projects/12670/trigger/pipeline"
# -F "variables[RUN_NIGHTLY_BUILD]=true" \
\ No newline at end of file
......@@ -95,13 +95,13 @@ class Mpp:
if isinstance(args, list):
process = Popen(args, cwd=cwd, stdout=PIPE, stderr=PIPE)
# p_stats = psutil.Process(process.pid)
# max_cpu, max_mem, = 0, 0.0
# cpu_num = p_stats.cpu_num()
# mem = p_stats.memory_info()
if not self.mute:
while True:
# current_cpu = p_stats.cpu_num()
# current_mem = p_stats.memory_info().rss
# max_cpu = current_cpu if current_cpu > max_cpu else max_cpu
# max_mem = current_mem if current_mem > max_mem else max_mem
# Todo: Memory tracking
# Todo: implement live plots?
# Solution: pass functions into run_subprocess
stdout = process.stdout.readline()
if stdout == b'' and process.poll() is not None:
break
......@@ -109,7 +109,6 @@ class Mpp:
print(stdout.decode('utf-8').strip('\n'))
process.wait()
rc = process.poll()
# print("ID: ", process.pid, "CPU: ", max_cpu, "MEM: ", self.in_bytes(max_mem))
if rc != 0 and not self.mute:
while True:
stderr = process.stderr.readline()
......