Skip to content

Commit e3fb4b1

Browse files
committed
trying to fix broken pipe error
1 parent ef1e8a0 commit e3fb4b1

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

cadence/activity_loop.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ def activity_task_loop(worker: Worker):
4242
if err:
4343
logger.error("PollForActivityTask failed: %s", err)
4444
logger.info(f"trying to restart worker and returning from current method")
45+
worker.stop()
4546
worker.start()
4647
return
4748
task_token = task.task_token

0 commit comments

Comments
 (0)