20
20
),
21
21
)
22
22
def test_scale_up_on_task_load (minimum , threshold , scatter ):
23
- """Tests that adaptive scaling reacts in a reasonable amount of time to
23
+ """Tests that adaptive scaling reacts in a reasonable amount of time to
24
24
an increased task load and scales up.
25
25
"""
26
26
maximum = 10
@@ -61,8 +61,8 @@ def clog(x: int, ev: Event) -> int:
61
61
@pytest .mark .stability
62
62
@pytest .mark .parametrize ("minimum" , (0 , 1 ))
63
63
def test_adapt_to_changing_workload (minimum : int ):
64
- """Tests that adaptive scaling reacts within a reasonable amount of time to
65
- a varying task load and scales up or down. This also asserts that no recomputation
64
+ """Tests that adaptive scaling reacts within a reasonable amount of time to
65
+ a varying task load and scales up or down. This also asserts that no recomputation
66
66
is caused by the scaling.
67
67
"""
68
68
maximum = 10
@@ -81,7 +81,9 @@ def test_adapt_to_changing_workload(minimum: int):
81
81
def clog (x : int , ev : Event , sem : Semaphore , ** kwargs ) -> int :
82
82
# Ensure that no recomputation happens by decrementing a countdown on a semaphore
83
83
acquired = sem .acquire (timeout = 1 )
84
- assert acquired is True , "Could not acquire semaphore, likely recomputation happened."
84
+ assert (
85
+ acquired is True
86
+ ), "Could not acquire semaphore, likely recomputation happened."
85
87
ev .wait ()
86
88
return x
87
89
@@ -185,7 +187,7 @@ def workload(
185
187
@pytest .mark .parametrize ("minimum" , (0 , 1 ))
186
188
def test_adapt_to_memory_intensive_workload (minimum ):
187
189
"""Tests that adaptive scaling reacts within a reasonable amount of time to a varying task and memory load.
188
-
190
+
189
191
Note: This tests currently results in spilling and very long runtimes.
190
192
"""
191
193
maximum = 10
0 commit comments