Skip to content

Commit defd560

Browse files
committed
Using the timeout kwarg for wait_for_slices
1 parent 8025b8a commit defd560

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

axlearn/common/launch_trainer_main.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ def main(_):
2323
except jax.errors.JaxRuntimeError as error:
2424
if not elastic_manager._is_error_due_to_slice_down(error):
2525
raise
26-
elastic_manager.wait_for_slices(timeout)
26+
ten_minutes = 10 * 60
27+
elastic_manager.wait_for_slices(timeout=ten_minutes)
2728

2829

2930
if __name__ == "__main__":

0 commit comments

Comments
 (0)