Skip to content

Commit 9c7015f

Browse files
committed
logging
1 parent 9812053 commit 9c7015f

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

cadence/activity_loop.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ def activity_task_loop(worker: Worker):
3737
except StopRequestedException:
3838
return
3939
except Exception as ex:
40+
if f'{ex}' == "timeout":
41+
logger.info(f"LongPoll timeout -- no tasks available to execute -- exception message: {ex}")
4042
logger.error("PollForActivityTask error: %s", ex)
4143
try:
4244
service.close()

0 commit comments

Comments
 (0)