Skip to content

vllm.distributed.ec_transfer.ec_connector.tiering.executor

Asynchronous filesystem I/O execution for encoder-cache entries.

Classes:

ECFileIOCompletion dataclass

Result and timing data for one accepted entry I/O job.

ECFileIOExecutor

Run one complete .ec file transfer per thread-pool task.

Methods:

  • drain –

    Wait for every accepted job and retain its completion for polling.

  • poll_completed –

    Drain currently available completions without blocking.

  • shutdown –

    Stop submission, drain accepted jobs, then stop worker threads.

  • stats –

    Return current pending counts, bytes, and oldest queue ages.

  • submit_delete –

    Submit one entry removal, or return None after shutdown.

  • submit_read –

    Submit one complete entry read, or return None after shutdown.

  • submit_write –

    Submit one complete entry write, or return None after shutdown.

drain()

Wait for every accepted job and retain its completion for polling.

poll_completed()

Drain currently available completions without blocking.

shutdown()

Stop submission, drain accepted jobs, then stop worker threads.

stats()

Return current pending counts, bytes, and oldest queue ages.

submit_delete(cache_key, entry_path, file_size_bytes)

Submit one entry removal, or return None after shutdown.

submit_read(cache_key, entry_path, destinations, file_size_bytes)

Submit one complete entry read, or return None after shutdown.

submit_write(cache_key, entry_path, temporary_path, sources, file_size_bytes, *, fsync=False)

Submit one complete entry write, or return None after shutdown.

ECFileIOStats dataclass

Current executor pressure signals.