Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Data] Fix incorrect pending task size if outputs are empty #47604

Merged
merged 1 commit into from
Sep 11, 2024
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
Original file line number Diff line number Diff line change
Expand Up @@ -366,9 +366,9 @@ def obj_store_mem_max_pending_output_per_task(self) -> Optional[float]:
if context._max_num_blocks_in_streaming_gen_buffer is None:
return None

bytes_per_output = (
self.average_bytes_per_output or context.target_max_block_size
)
bytes_per_output = self.average_bytes_per_output
if bytes_per_output is None:
bytes_per_output = context.target_max_block_size

num_pending_outputs = context._max_num_blocks_in_streaming_gen_buffer
if self.average_num_outputs_per_task is not None:
Expand Down
Loading