Skip to content
Snippets Groups Projects
Commit bbeba2ec authored by Björn Vonheiden's avatar Björn Vonheiden
Browse files

Execute the run uc python instead of bash script

parent d9e307dd
Branches
Tags
1 merge request!42Integerate theodolite and run uc python scripts
# Wrapper that makes the execution method of a subexperiment interchangable. # Wrapper that makes the execution method of a subexperiment interchangable.
import os import os
import run_uc
dirname = os.path.dirname(__file__)
os.chdir(dirname+"/../../")
def execute(subexperiment_config): def execute(subexperiment_config):
os.system(f"./run_uc{subexperiment_config.use_case}.sh {subexperiment_config.counter} {subexperiment_config.dim_value} {subexperiment_config.replicas} {subexperiment_config.partitions} {subexperiment_config.cpu_limit} {subexperiment_config.memory_limit} {subexperiment_config.kafka_streams_commit_interval_ms} {subexperiment_config.execution_minutes}") run_uc.main(
\ No newline at end of file exp_id=subexperiment_config.counter,
uc_id=subexperiment_config.use_case,
dim_value=int(subexperiment_config.dim_value),
instances=int(subexperiment_config.replicas),
partitions=subexperiment_config.partitions,
cpu_limit=subexperiment_config.cpu_limit,
memory_limit=subexperiment_config.memory_limit,
commit_interval_ms=subexperiment_config.kafka_streams_commit_interval_ms,
execution_minutes=int(subexperiment_config.execution_minutes),
reset=False,
reset_only=False)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment