feat: update Google indexing functions to track skipped messages

- Modified the indexing functions for Google Calendar and Gmail to return the count of skipped messages alongside indexed messages, enhancing performance tracking.
- Updated related tests to accommodate the new return values, ensuring comprehensive coverage of the indexing process.
- Improved error handling to maintain consistency in returned values across different indexing functions.
This commit is contained in:
Anish Sarkar 2026-03-19 20:56:40 +05:30
parent 80f7d5f34a
commit 8e7cda31c5
5 changed files with 28 additions and 33 deletions

View file

@ -106,7 +106,7 @@ async def test_composio_calendar_without_account_id_returns_error(
maker = make_session_factory(async_engine)
async with maker() as session:
count, error = await index_google_calendar_events(
count, _skipped, error = await index_google_calendar_events(
session=session, connector_id=data["connector_id"],
search_space_id=data["search_space_id"], user_id=data["user_id"],
)

View file

@ -106,7 +106,7 @@ async def test_composio_gmail_without_account_id_returns_error(
maker = make_session_factory(async_engine)
async with maker() as session:
count, error = await index_google_gmail_messages(
count, _skipped, error = await index_google_gmail_messages(
session=session, connector_id=data["connector_id"],
search_space_id=data["search_space_id"], user_id=data["user_id"],
)