11from __future__ import annotations
22
33import asyncio
4+ import logging
45import os
56import random
67from contextlib import suppress
3637@pytest .mark .slow ()
3738def 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
7577def 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
145148def 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
164168def 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