Skip to content

Centralize runtime loop ownership and refactor transfer_queue#69

Merged
wyeth930203 merged 1 commit intoDeepLink-org:mainfrom
wyeth93:transfer_queue
Apr 23, 2026
Merged

Centralize runtime loop ownership and refactor transfer_queue#69
wyeth930203 merged 1 commit intoDeepLink-org:mainfrom
wyeth93:transfer_queue

Conversation

@wyeth93
Copy link
Copy Markdown
Contributor

@wyeth93 wyeth93 commented Apr 16, 2026

  • centralize sync bridge and event-loop ownership in _async_bridge and reject sync wrappers on the active Pulsing event-loop thread

  • replace transfer_queue partition/task_name/batch_size semantics with topic-scoped exact reads using bucket_id and bucket_capacity

  • implement fixed-capacity per-bucket ring buffers keyed by sample_idx with incremental field merge and overwrite-oldest behavior

  • validate bucket_capacity consistency when reusing topic+bucket actors and make bucket resolution more robust for Ray workers

  • refresh transfer_queue sync/async/Ray examples and rewrite transfer_queue tests around exact-read and ring-buffer semantics

  • add focused coverage tests for async bridge/runtime, sync_queue, subprocess proxies, ray/torchrun integrations, and transfer_queue edge cases

  • verified with ./.venv/bin/python -m pytest tests/python --ignore=tests/python/test_chaos.py (567 passed, 1 skipped)

Overview:

Details:

Where should the reviewer start?

Related Issues: (use one of the action keywords Closes / Fixes / Resolves / Relates to)

  • closes GitHub issue: #xxx

- centralize sync bridge and event-loop ownership in _async_bridge and reject sync wrappers on the active Pulsing event-loop thread

- replace transfer_queue partition/task_name/batch_size semantics with topic-scoped exact reads using bucket_id and bucket_capacity

- implement fixed-capacity per-bucket ring buffers keyed by sample_idx with incremental field merge and overwrite-oldest behavior

- validate bucket_capacity consistency when reusing topic+bucket actors and make bucket resolution more robust for Ray workers

- refresh transfer_queue sync/async/Ray examples and rewrite transfer_queue tests around exact-read and ring-buffer semantics

- add focused coverage tests for async bridge/runtime, sync_queue, subprocess proxies, ray/torchrun integrations, and transfer_queue edge cases

- verified with ./.venv/bin/python -m pytest tests/python --ignore=tests/python/test_chaos.py (567 passed, 1 skipped)
@wyeth930203 wyeth930203 merged commit a7d064a into DeepLink-org:main Apr 23, 2026
50 of 51 checks passed
@wyeth93 wyeth93 deleted the transfer_queue branch April 23, 2026 08:02
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.

1 participant