Skip to content

Commit ce73ffa

Browse files
committed
More logs on worker shutdown
1 parent 4e0a541 commit ce73ffa

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

temporalio/worker/_worker.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -762,11 +762,14 @@ async def raise_on_shutdown():
762762
if worker and task.done() and task.exception():
763763
tasks[worker] = asyncio.create_task(worker.drain_poll_queue())
764764

765+
logger.info("Task drain done")
766+
765767
# Notify shutdown occurring
766768
if self._activity_worker:
767769
self._activity_worker.notify_shutdown()
768770
if self._workflow_worker:
769771
self._workflow_worker.notify_shutdown()
772+
logger.info("workers notified")
770773

771774
# Wait for all tasks to complete (i.e. for poller loops to stop)
772775
await asyncio.wait(tasks.values())

0 commit comments

Comments
 (0)