Skip to content

Commit

Permalink
add timeouts
Browse files Browse the repository at this point in the history
  • Loading branch information
saitcakmak committed Sep 8, 2023
1 parent 6d843c3 commit b1c6993
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions scripts/make_tutorials.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def run_script(
capture_output=True,
text=True,
env=env,
# timeout=timeout_minutes * 60, # TODO: utilize time out.
timeout=timeout_minutes * 60,
)
return run_out

Expand Down Expand Up @@ -171,8 +171,10 @@ def gen_tutorials(
# try / catch failures for now
# will re-raise at the end
try:
# Execute notebook. TODO: use timeout in the future.
run_script(tutorial=tutorial_path, timeout_minutes=None)
# Execute notebook.
# TODO: [T163244135] Speed up tutorials and reduce timeout limits.
timeout_minutes = 15 if smoke_test else 150
run_script(tutorial=tutorial_path, timeout_minutes=timeout_minutes)
total_time = time.time() - start_time
print(
"Done executing tutorial {}. Took {:.2f} seconds.".format(
Expand Down

0 comments on commit b1c6993

Please sign in to comment.