(20250118) Ready to test Mail Sync (Cron) on the server.

This commit is contained in:
2025-01-18 13:14:42 +05:30
parent 766b196a80
commit 258b2fdbaf
8 changed files with 80 additions and 44 deletions
+1 -1
View File
@@ -164,7 +164,7 @@ async def invoke_llm(
# Call the LLM and see if its service worked or not:
llm_response = await current_app.llm.invoke(
mongo_conn = current_app.data_mongo,
mongo_data_conn = current_app.data_mongo,
user_info = CoreUserInfoModel(**kwargs["session_info"]),
llm_input = inbound_data
)
+4 -1
View File
@@ -268,8 +268,11 @@ async def sync_mail(
message = sync_results.message,
data = {
"totalCount": sync_results.totalCount,
"attemptedCount": sync_results.attemptedCount,
"successCount": sync_results.successCount,
"failureCount": sync_results.failureCount
"failureCount": sync_results.failureCount,
"newCount": sync_results.newCount,
"existingCount": sync_results.totalCount - sync_results.newCount
}
)