[5/N] Schedule chunk transfers as their own stage (#7406)

Signed-off-by: specture724 <specture724@gmail.com>
This commit is contained in:
Anjie Hou authored and GitHub committed 2026-09-18 09:27:56 +08:00
1 parent 6bda549ac2
commit f8197e120f
6 files changed
+702 -55

No files matched your search

@@ -2859,8 +2859,10 @@ def test_decode_to_mp4_batches_consumer_transfers(monkeypatch):
self.kwargs = kwargs
self.__class__.instances.append(self)
def push(self, frames):
def push(self, frames, *, on_consumed=None):
self.pushes.append(np.array(frames, copy=True))
if on_consumed is not None:
on_consumed()
def finish(self):
return b"mp4"
@@ -2986,8 +2988,10 @@ def test_request_video_codec_options_reach_the_preencoded_mp4_encoder(monkeypatc
self.kwargs = kwargs
self.__class__.instances.append(self)
def push(self, frames):
def push(self, frames, *, on_consumed=None):
del frames
if on_consumed is not None:
on_consumed()
def finish(self):
return b"mp4"