From 6bb795ab7fa7befff6190ef77fb400df01eedeb1 Mon Sep 17 00:00:00 2001 From: longpeng Date: Fri, 20 Jun 2025 17:48:56 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=86=5Fheartbeat=5Ftask=E6=96=B9=E6=B3=95?= =?UTF-8?q?=E6=94=B9=E4=B8=BA=E9=9D=99=E6=80=81=E6=96=B9=E6=B3=95=E4=BB=A5?= =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=85=B6=E8=B0=83=E7=94=A8=E6=96=B9=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- workers/python/activities.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/workers/python/activities.py b/workers/python/activities.py index 12464c1..8a30e10 100644 --- a/workers/python/activities.py +++ b/workers/python/activities.py @@ -19,8 +19,8 @@ class TestActivities: """ 测试活动类,包含API测试和UI测试的Temporal Activity实现 """ - - async def _heartbeat_task(self, interval_seconds=30): + @staticmethod + async def _heartbeat_task(interval_seconds=30): """ 心跳任务,定期发送心跳信号,防止长时间运行的Activity被Temporal服务器认为已死亡