in src/braket_container.py [0:0]
def kick_off_customer_script(entry_point : str) -> multiprocessing.Process:
"""
Runs the customer script as a separate process.
Args:
entry_point (str): the entry point to the customer code, represented as <module>:<method>.
Returns:
Process: the process handle to the running process.
"""
try:
str_module, _, str_method = entry_point.partition(":")
customer_module = importlib.import_module(str_module)
customer_method = getattr(customer_module, str_method)
customer_code_process = multiprocessing.Process(target=customer_method)
customer_code_process.start()
except Exception as e:
log_failure_and_exit(f"Unable to run job at entry point {entry_point}\nException: {e}")
return customer_code_process