Belle II Software development
hlt_execution.py
1#! /usr/bin/env python3
2
3
10import subprocess
11import sys
12
13from hlt.clean_execution import CleanBasf2Execution
14
15
16def main(script_name):
17 """Shortcut method to do the basf2 execution on expressreco and hlt"""
18 execution = CleanBasf2Execution(timeout=10)
19 try:
20 execution.start(["basf2", "--no-stats", script_name, "--"] + sys.argv[1:])
21 return_code = execution.wait()
22 finally:
23 subprocess.run("framework-pcore-clear_ipcs")
24 return return_code
Definition: main.py:1