Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 37cbc18

Browse files
committed
Increase codegen timeout from 5 minutes to 6
1 parent 1ddf39e commit 37cbc18

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/scripts/run_code_generation.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ def build_generator(generator_dir: str, max_workers: int) -> None:
152152
"""
153153

154154
mvn_cmd = [shutil.which("mvn"), "package", "-q"] # subprocess.run does expand Path by default
155-
process = subprocess.run(mvn_cmd, cwd=generator_dir, timeout=5*60, check=True)
155+
process = subprocess.run(mvn_cmd, cwd=generator_dir, timeout=6*60, check=True)
156156
process.check_returncode()
157157

158158

@@ -166,7 +166,7 @@ def run_generator_once(service_name: str, run_command: list, output_filename: st
166166
"""
167167
# run_command_str = str(run_command).replace(', ', ' ').replace('\'','')
168168
# print(f"RUNNING COMMAND\n{run_command_str}\n")
169-
process = subprocess.run(run_command, timeout=5 * 60, check=True, capture_output=True)
169+
process = subprocess.run(run_command, timeout=6*60, check=True, capture_output=True)
170170
process.check_returncode()
171171

172172
if output_filename != "STDOUT":

0 commit comments

Comments
 (0)