SIENTIAPDE-1141

fix: adjust execution counts and reduce sleep duration in test.ipynb and temporal_manager.py for improved performance
This commit is contained in:
vitor-aignosi
2025-07-10 15:42:38 -03:00
parent 70f9d4e837
commit 861cfde9ef
2 changed files with 6 additions and 6 deletions

View File

@@ -78,7 +78,7 @@ class TemporalManager(BaseActivity):
'data': json.loads(data),
}
await sleep(0.2)
await sleep(0.075)
self.logger.info("Found %d orchestrated schedules",
len(orchestrated_schedules))

View File

@@ -110,7 +110,7 @@
},
{
"cell_type": "code",
"execution_count": 1,
"execution_count": 3,
"id": "7d01f160",
"metadata": {},
"outputs": [],
@@ -120,7 +120,7 @@
"import os\n",
"from unittest.mock import MagicMock\n",
"\n",
"host = \"localhost:44795\"\n",
"host = \"localhost:7233\"\n",
"logger = MagicMock(info=MagicMock(side_effect=print), debug=MagicMock(side_effect=print))\n",
"\n",
"temporal_client = await client.Client.connect(\n",
@@ -136,17 +136,17 @@
},
{
"cell_type": "code",
"execution_count": 6,
"execution_count": 4,
"id": "bb750ae6",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"<temporalio.client.ScheduleHandle at 0x7ddf80719310>"
"<temporalio.client.ScheduleHandle at 0x7700871c6150>"
]
},
"execution_count": 6,
"execution_count": 4,
"metadata": {},
"output_type": "execute_result"
}