Skip to content

Commit 38ede22

Browse files
authored
fix: add missing shutdown method to PyPDF file processor adapter (#5047)
# What does this PR do? Adds async shutdown() method to PyPDFFileProcessorAdapter to comply with stack shutdown protocol and eliminate warnings during shutdown. ## Test Plan pre-commit and existing integration tests pass Signed-off-by: Alina Ryan <aliryan@redhat.com>
1 parent d902cdd commit 38ede22

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

  • src/llama_stack/providers/inline/file_processor/pypdf

src/llama_stack/providers/inline/file_processor/pypdf/adapter.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,7 @@ async def process_file(
3333
options=request.options,
3434
chunking_strategy=request.chunking_strategy,
3535
)
36+
37+
async def shutdown(self) -> None:
38+
"""Shutdown the PyPDF file processor."""
39+
pass

0 commit comments

Comments
 (0)