Commit 4a9a5f1f by Oleksandr Barabash

bot reference time measurement added

parent 569086f6
""" Message extension bot """ """ Message extension bot """
import asyncio import asyncio
import time
import uuid import uuid
from asyncio import Future from asyncio import Future
from typing import Optional, Dict from typing import Optional, Dict
...@@ -245,9 +246,12 @@ class TeamsMessagingExtensionsActionPreviewBot(TeamsActivityHandler): ...@@ -245,9 +246,12 @@ class TeamsMessagingExtensionsActionPreviewBot(TeamsActivityHandler):
return return
# save conversation reference # save conversation reference
start = time.time()
reference = await self.cosmos_client.create_conversation_reference( reference = await self.cosmos_client.create_conversation_reference(
turn_context turn_context
) )
Log.d(TAG, "on_message_activity::create_conversation_reference::took:"
f"{time.time() - start}")
if turn_context.activity.value is not None: if turn_context.activity.value is not None:
return await self.handle_submit_action(turn_context) return await self.handle_submit_action(turn_context)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment