将_heartbeat_task方法改为静态方法以优化其调用方式
This commit is contained in:
parent
c4d6e553ed
commit
6bb795ab7f
@ -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服务器认为已死亡
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user