Galen Seilis
12/07/2023, 9:38 PMimport subprocess
PYPY_PATH = ...
SCRIPT_PATH = ...
def run_pypy_script(input_data):
write_to_temp(input_data)
pypy_cmd = [PYPY_PATH, SCRIPT_PATH]
subprocess.run(pypy_cmd, check=True)
return load_results()
Any thoughts on this approach, or a better approach?
https://docs.python.org/3/library/subprocess.html#subprocess.runmarrrcin
12/08/2023, 8:12 AMGalen Seilis
12/08/2023, 2:08 PMmarrrcin
12/08/2023, 2:37 PMmarrrcin
12/08/2023, 2:39 PMGalen Seilis
12/08/2023, 3:22 PMcheck=True
argument in subprocess.run
should raise an error if something doesn't work on this component. If that is correct then Kedro should be aware of when the script passes/fails.
Which reproducibility guarantees would I be loosing? If I know what they are then there may be ways for me to mitigate that issue.marrrcin
12/08/2023, 4:06 PMmarrrcin
12/08/2023, 4:07 PM