Add async method to retrieve connector by ID in LangflowConnectorService
This commit introduces the _get_connector method in the LangflowConnectorService class, providing an asynchronous way to retrieve a connector by its connection ID. This addition enhances the service's functionality and aligns with the ongoing improvements in asynchronous processing and code maintainability.
This commit is contained in:
parent
69c064763a
commit
762152934e
1 changed files with 4 additions and 0 deletions
|
|
@ -288,3 +288,7 @@ class LangflowConnectorService:
|
|||
)
|
||||
|
||||
return task_id
|
||||
|
||||
async def _get_connector(self, connection_id: str) -> Optional[BaseConnector]:
|
||||
"""Get a connector by connection ID (alias for get_connector)"""
|
||||
return await self.get_connector(connection_id)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue