1
1
from __future__ import annotations
2
2
3
3
import asyncio
4
+ import logging
4
5
import os
5
6
import random
6
7
from contextlib import suppress
36
37
@pytest .mark .slow ()
37
38
def test_submit_after_failed_worker_sync (loop ):
38
39
with cluster () as (s , [a , b ]):
40
+ logging .getLogger ("distributed" ).setLevel ("DEBUG" )
39
41
with Client (s ["address" ], loop = loop ) as c :
40
42
L = c .map (inc , range (10 ))
41
43
wait (L )
@@ -74,6 +76,7 @@ async def test_submit_after_failed_worker(c, s, a, b):
74
76
@pytest .mark .slow
75
77
def test_gather_after_failed_worker (loop ):
76
78
with cluster () as (s , [a , b ]):
79
+ logging .getLogger ("distributed" ).setLevel ("DEBUG" )
77
80
with Client (s ["address" ], loop = loop ) as c :
78
81
L = c .map (inc , range (10 ))
79
82
wait (L )
@@ -144,6 +147,7 @@ async def test_restart_cleared(c, s, a, b):
144
147
145
148
def test_restart_sync (loop ):
146
149
with cluster (nanny = True ) as (s , [a , b ]):
150
+ logging .getLogger ("distributed" ).setLevel ("DEBUG" )
147
151
with Client (s ["address" ], loop = loop ) as c :
148
152
x = c .submit (div , 1 , 2 )
149
153
x .result ()
@@ -163,6 +167,7 @@ def test_restart_sync(loop):
163
167
164
168
def test_worker_doesnt_await_task_completion (loop ):
165
169
with cluster (nanny = True , nworkers = 1 ) as (s , [w ]):
170
+ logging .getLogger ("distributed" ).setLevel ("DEBUG" )
166
171
with Client (s ["address" ], loop = loop ) as c :
167
172
future = c .submit (sleep , 100 )
168
173
sleep (0.1 )
0 commit comments