Skip to content

Commit 6687615

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

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

cadence/activity_loop.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,13 @@ def activity_task_loop(worker: Worker):
3838
return
3939
except Exception as ex:
4040
logger.error("PollForActivityTask error: %s", ex)
41-
continue
42-
if err:
43-
logger.error("PollForActivityTask failed: %s", err)
4441
logger.info(f"trying to restart worker and returning from current method")
4542
worker.stop()
4643
worker.start()
4744
return
45+
if err:
46+
logger.error("PollForActivityTask failed: %s", err)
47+
continue
4848
task_token = task.task_token
4949
if not task_token:
5050
logger.debug("PollForActivityTask has no task_token (expected): %s", task)

0 commit comments

Comments
 (0)