Remove an unnecessary check in SyncParallelPipeline
This commit is contained in:
@@ -263,11 +263,11 @@ class SyncParallelPipeline(BasePipeline):
|
|||||||
"""
|
"""
|
||||||
await super().process_frame(frame, direction)
|
await super().process_frame(frame, direction)
|
||||||
|
|
||||||
# SystemFrames (but not EndFrame) are simply passed through all
|
# SystemFrames are simply passed through all internal pipelines without
|
||||||
# internal pipelines without draining queued output. This avoids
|
# draining queued output. This avoids the race condition where a
|
||||||
# the race condition where a SystemFrame's wait_for_sync steals
|
# SystemFrame's wait_for_sync steals frames from a concurrent
|
||||||
# frames from a concurrent non-SystemFrame's wait_for_sync.
|
# non-SystemFrame's wait_for_sync.
|
||||||
if isinstance(frame, SystemFrame) and not isinstance(frame, EndFrame):
|
if isinstance(frame, SystemFrame):
|
||||||
if direction == FrameDirection.UPSTREAM:
|
if direction == FrameDirection.UPSTREAM:
|
||||||
for s in self._sinks:
|
for s in self._sinks:
|
||||||
await s["processor"].process_frame(frame, direction)
|
await s["processor"].process_frame(frame, direction)
|
||||||
|
|||||||
Reference in New Issue
Block a user