Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions pathwaysutils/elastic/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ def wait_for_slices(
timeout.

Returns:
The good slice indices
The active slice indices

Raises:
TimeoutError: If the timeout is reached before the slices become
Expand Down Expand Up @@ -388,7 +388,9 @@ def wrapper(*args, **kwargs):
"Elastic attempt %d out of %d", retry_index + 1, max_retries
)

self.wait_for_slices(poll_interval=poll_interval, timeout=timeout)
self.active_slice_indices = self.wait_for_slices(
poll_interval=poll_interval, timeout=timeout
)

return func(*args, **kwargs)
except jax.errors.JaxRuntimeError as error:
Expand Down
Loading