Skip to content
This repository was archived by the owner on Jan 21, 2026. It is now read-only.

add client unit test & get_metadata add mode 'force_fetch' - #10

Merged
0oshowero0 merged 1 commit into
TransferQueue:devfrom
zhabuye:dev
Sep 17, 2025
Merged

0oshowero0 merged 1 commit into
TransferQueue:devfrom
zhabuye:dev

Conversation

@zhabuye

@zhabuye zhabuye commented Sep 16, 2025

Copy link
Copy Markdown
Contributor

No description provided.

@zhabuye
zhabuye force-pushed the dev branch 3 times, most recently from f8b9286 to e1fab14 Compare September 17, 2025 07:01
production_status = ProductionStatus.NOT_PRODUCED # FIXME: not real-time
dtype = None
shape = None
elif mode == "force_fetch":
col_index = self.field_name_mapping.get(field_name)
if col_index is not None and self.data_production_status[global_index, col_index] == 1:

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add a TODO here. replace the self.data_production_status == 0 or ==1 operation by using ProductionStatus

Comment thread transfer_queue/data_system.py Outdated
@@ -786,15 +791,25 @@ def _generate_batch_meta(self, global_step: int, global_indexes: List[int], data
# Create FieldMeta objects for each field
fields = []
for field_name in data_fields:
if not prompt:
if mode == "insert":

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wrong logic?

Comment thread transfer_queue/data_system.py Outdated
production_status = ProductionStatus.READY_FOR_CONSUME # Since we filtered by ready status
# Get per-tensor dtype and shape for this specific global_index and field
dtype = self._get_per_tensor_dtype(global_index, field_name)
shape = self._get_per_tensor_shape(global_index, field_name)
else:
elif mode == "fetch":

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wrong logic?

@0oshowero0
0oshowero0 merged commit 05ea1e7 into TransferQueue:dev Sep 17, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants