[EC Connector] Add has_pending_push_work (#49582)

Signed-off-by: omerpaz95 <omerpaz95@gmail.com>
This commit is contained in:
omerpaz95
2026-07-29 11:04:22 +02:00
committed by GitHub
parent 5b29c958c7
commit dad7a6383b
2 changed files with 16 additions and 0 deletions
@@ -275,3 +275,15 @@ class ECConnectorBase(ABC):
get_finished().
"""
return False, None
def has_pending_push_work(self) -> bool:
"""Return True if the connector has push-mode work that requires
the engine main loop to keep stepping (e.g. for EPD,
Producer has push work when Xfer is in progress - Consumer
is reading it).
This mirrors exactly the KV Connector's has_pending_push_work().
Connectors that don't implement push-based EC transfer should
leave this as False.
"""
return False