Skip to content

Commit 1db1d9f

Browse files
committed
debug logs for test_failed_workers cluster tests
1 parent 8943f05 commit 1db1d9f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

distributed/tests/test_failed_workers.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
from __future__ import annotations
22

33
import asyncio
4+
import logging
45
import os
56
import random
67
from contextlib import suppress
@@ -36,6 +37,7 @@
3637
@pytest.mark.slow()
3738
def test_submit_after_failed_worker_sync(loop):
3839
with cluster() as (s, [a, b]):
40+
logging.getLogger("distributed").setLevel("DEBUG")
3941
with Client(s["address"], loop=loop) as c:
4042
L = c.map(inc, range(10))
4143
wait(L)
@@ -74,6 +76,7 @@ async def test_submit_after_failed_worker(c, s, a, b):
7476
@pytest.mark.slow
7577
def test_gather_after_failed_worker(loop):
7678
with cluster() as (s, [a, b]):
79+
logging.getLogger("distributed").setLevel("DEBUG")
7780
with Client(s["address"], loop=loop) as c:
7881
L = c.map(inc, range(10))
7982
wait(L)
@@ -144,6 +147,7 @@ async def test_restart_cleared(c, s, a, b):
144147

145148
def test_restart_sync(loop):
146149
with cluster(nanny=True) as (s, [a, b]):
150+
logging.getLogger("distributed").setLevel("DEBUG")
147151
with Client(s["address"], loop=loop) as c:
148152
x = c.submit(div, 1, 2)
149153
x.result()
@@ -163,6 +167,7 @@ def test_restart_sync(loop):
163167

164168
def test_worker_doesnt_await_task_completion(loop):
165169
with cluster(nanny=True, nworkers=1) as (s, [w]):
170+
logging.getLogger("distributed").setLevel("DEBUG")
166171
with Client(s["address"], loop=loop) as c:
167172
future = c.submit(sleep, 100)
168173
sleep(0.1)

0 commit comments

Comments
 (0)