Skip to content

Commit a8151a6

Browse files
authored
Increase latency for stealing (#5390)
1 parent 1585f85 commit a8151a6

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

distributed/stealing.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,11 @@
1414
from .diagnostics.plugin import SchedulerPlugin
1515
from .utils import log_errors
1616

17-
LATENCY = 10e-3
17+
# Stealing requires multiple network bounces and if successful also task
18+
# submission which may include code serialization. Therefore, be very
19+
# conservative in the latency estimation to suppress too aggressive stealing
20+
# of small tasks
21+
LATENCY = 0.1
1822

1923
logger = logging.getLogger(__name__)
2024

0 commit comments

Comments
 (0)