Skip to content

Comments

[bugfix] quick fix of wait#82

Merged
peaceforeverCN merged 5 commits intotaco-project:mainfrom
linhu-nv:wait-fix
Dec 15, 2025
Merged

[bugfix] quick fix of wait#82
peaceforeverCN merged 5 commits intotaco-project:mainfrom
linhu-nv:wait-fix

Conversation

@linhu-nv
Copy link
Collaborator

fix inconsistence of (graph_id, op_id) pair with those in transfer engine here

self.completed_queue.put((op.graph_id, op.op_id))

@zhuofan1123 zhuofan1123 requested a review from Copilot December 12, 2025 09:14
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR refactors the transfer operation completion tracking system by replacing tuple-based (graph_id, op_id) pairs with a structured CompletedOp dataclass throughout the codebase. This change improves type safety and code clarity while fixing inconsistencies in how completed operations are represented across different components.

Key Changes:

  • Introduced a new CompletedOp dataclass to encapsulate graph_id and op_id pairs with helper methods
  • Updated all return types from List[Tuple[int, int]] to List[CompletedOp] across the transfer manager interfaces
  • Refactored completion handling logic to use CompletedOp methods like is_graph_completed() instead of checking op_id == -1

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
flexkv/common/transfer.py Added CompletedOp dataclass with helper methods for graph completion checks and tuple conversion
flexkv/transfer/transfer_engine.py Updated completion queue to use CompletedOp objects and modified method signatures to return List[CompletedOp]
flexkv/transfer_manager.py Refactored all transfer manager classes to use CompletedOp instead of tuples, updated completion handling logic
flexkv/kvtask.py Updated task completion tracking to work with CompletedOp objects using their accessor methods

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@linhu-nv linhu-nv changed the title quick fix of wait [bugfix] quick fix of wait Dec 15, 2025
Copy link
Collaborator

@peaceforeverCN peaceforeverCN left a comment

Choose a reason for hiding this comment

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

LGTM

@peaceforeverCN peaceforeverCN merged commit 2cf6b5f into taco-project:main Dec 15, 2025
1 of 2 checks passed
Luis-xu pushed a commit to peaceforeverCN/FlexKV that referenced this pull request Dec 26, 2025
* update benchmark worker

* status map

* enable nvtx

* fix default config

* clear cpu to test ssd cache
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants