@@ -2152,7 +2152,7 @@ def Worky(x, y):
2152
2152
def test_wf_nostate_cachelocations (worker : str , tmp_path : Path ):
2153
2153
"""
2154
2154
Two identical wfs with provided cache_root;
2155
- the second worky has cache_locations and should not recompute the results
2155
+ the second worky has readonly_caches and should not recompute the results
2156
2156
"""
2157
2157
cache_root1 = tmp_path / "test_wf_cache3"
2158
2158
cache_root1 .mkdir ()
@@ -2187,7 +2187,7 @@ def Worky2(x, y):
2187
2187
2188
2188
t0 = time .time ()
2189
2189
with Submitter (
2190
- worker = worker , cache_root = cache_root2 , cache_locations = cache_root1
2190
+ worker = worker , cache_root = cache_root2 , readonly_caches = cache_root1
2191
2191
) as sub :
2192
2192
results2 = sub (worky2 )
2193
2193
@@ -2242,7 +2242,7 @@ def Worky2(x, y):
2242
2242
2243
2243
t0 = time .time ()
2244
2244
with Submitter (
2245
- worker = worker , cache_root = cache_root2 , cache_locations = cache_root1
2245
+ worker = worker , cache_root = cache_root2 , readonly_caches = cache_root1
2246
2246
) as sub :
2247
2247
results2 = sub (worky2 )
2248
2248
@@ -2295,7 +2295,7 @@ def Worky2(x, y):
2295
2295
2296
2296
t0 = time .time ()
2297
2297
with Submitter (
2298
- worker = worker , cache_root = cache_root2 , cache_locations = cache_root1
2298
+ worker = worker , cache_root = cache_root2 , readonly_caches = cache_root1
2299
2299
) as sub :
2300
2300
results2 = sub (worky2 )
2301
2301
@@ -2354,7 +2354,7 @@ def Worky2(x, y):
2354
2354
2355
2355
t0 = time .time ()
2356
2356
with Submitter (
2357
- worker = worker , cache_root = cache_root2 , cache_locations = cache_root1
2357
+ worker = worker , cache_root = cache_root2 , readonly_caches = cache_root1
2358
2358
) as sub :
2359
2359
results2 = sub (worky2 )
2360
2360
@@ -2411,7 +2411,7 @@ def Worky2(x, y):
2411
2411
2412
2412
t0 = time .time ()
2413
2413
with Submitter (
2414
- worker = worker , cache_root = cache_root2 , cache_locations = cache_root1
2414
+ worker = worker , cache_root = cache_root2 , readonly_caches = cache_root1
2415
2415
) as sub :
2416
2416
results2 = sub (worky2 )
2417
2417
@@ -2434,7 +2434,7 @@ def Worky2(x, y):
2434
2434
def test_wf_nostate_cachelocations_forcererun (worker : str , tmp_path : Path ):
2435
2435
"""
2436
2436
Two identical wfs with provided cache_root;
2437
- the second worky has cache_locations ,
2437
+ the second worky has readonly_caches ,
2438
2438
but submitter is called with rerun=True, so should recompute
2439
2439
"""
2440
2440
cache_root1 = tmp_path / "test_wf_cache3"
@@ -2492,7 +2492,7 @@ def test_wf_nostate_cachelocations_wftaskrerun_propagateTrue(
2492
2492
worker : str , tmp_path : Path
2493
2493
):
2494
2494
"""
2495
- Two identical wfs with provided cache_root and cache_locations for the second one;
2495
+ Two identical wfs with provided cache_root and readonly_caches for the second one;
2496
2496
submitter doesn't have rerun, but the second worky has rerun=True,
2497
2497
propagate_rerun is True as default, so everything should be rerun
2498
2498
"""
@@ -2528,7 +2528,7 @@ def Worky2(x, y):
2528
2528
2529
2529
t0 = time .time ()
2530
2530
with Submitter (
2531
- worker = worker , cache_root = cache_root2 , cache_locations = cache_root1
2531
+ worker = worker , cache_root = cache_root2 , readonly_caches = cache_root1
2532
2532
) as sub :
2533
2533
results2 = sub (worky2 , rerun = True )
2534
2534
@@ -2555,7 +2555,7 @@ def test_wf_nostate_cachelocations_wftaskrerun_propagateFalse(
2555
2555
worker : str , tmp_path : Path
2556
2556
):
2557
2557
"""
2558
- Two identical wfs with provided cache_root and cache_locations for the second one;
2558
+ Two identical wfs with provided cache_root and readonly_caches for the second one;
2559
2559
submitter doesn't have rerun, but the second worky has rerun=True,
2560
2560
propagate_rerun is set to False, so worky will be triggered,
2561
2561
but tasks will not have rerun, so will use the previous results
@@ -2594,7 +2594,7 @@ def Worky2(x, y):
2594
2594
with Submitter (
2595
2595
worker = worker ,
2596
2596
cache_root = cache_root2 ,
2597
- cache_locations = cache_root1 ,
2597
+ readonly_caches = cache_root1 ,
2598
2598
propagate_rerun = False ,
2599
2599
) as sub :
2600
2600
results2 = sub (worky2 , rerun = True )
@@ -2629,7 +2629,7 @@ def test_wf_nostate_cachelocations_taskrerun_wfrerun_propagateFalse(
2629
2629
worker : str , tmp_path : Path
2630
2630
):
2631
2631
"""
2632
- Two identical wfs with provided cache_root, and cache_locations for the second worky;
2632
+ Two identical wfs with provided cache_root, and readonly_caches for the second worky;
2633
2633
submitter doesn't have rerun, but worky has rerun=True,
2634
2634
since propagate_rerun=False, only tasks that have rerun=True will be rerun
2635
2635
"""
@@ -2668,7 +2668,7 @@ def Worky2(x, y):
2668
2668
with Submitter (
2669
2669
worker = worker ,
2670
2670
cache_root = cache_root2 ,
2671
- cache_locations = cache_root1 ,
2671
+ readonly_caches = cache_root1 ,
2672
2672
propagate_rerun = False ,
2673
2673
) as sub :
2674
2674
results2 = sub (worky2 , rerun = True ) # rerun will not be propagated to each task)
@@ -2692,7 +2692,7 @@ def Worky2(x, y):
2692
2692
def test_wf_nostate_nodecachelocations (worker : str , tmp_path : Path ):
2693
2693
"""
2694
2694
Two wfs with different input, but the second node has the same input;
2695
- the second worky has cache_locations and should recompute the worky,
2695
+ the second worky has readonly_caches and should recompute the worky,
2696
2696
but without recomputing the second node
2697
2697
"""
2698
2698
cache_root1 = tmp_path / "test_wf_cache3"
@@ -2725,7 +2725,7 @@ def Worky2(x, y=None):
2725
2725
worky2 = Worky2 (x = 2 )
2726
2726
2727
2727
with Submitter (
2728
- worker = worker , cache_root = cache_root2 , cache_locations = cache_root1
2728
+ worker = worker , cache_root = cache_root2 , readonly_caches = cache_root1
2729
2729
) as sub :
2730
2730
results2 = sub (worky2 )
2731
2731
@@ -2744,7 +2744,7 @@ def Worky2(x, y=None):
2744
2744
def test_wf_nostate_nodecachelocations_upd (worker : str , tmp_path : Path ):
2745
2745
"""
2746
2746
Two wfs with different input, but the second node has the same input;
2747
- the second worky has cache_locations (set after adding tasks) and should recompute,
2747
+ the second worky has readonly_caches (set after adding tasks) and should recompute,
2748
2748
but without recomputing the second node
2749
2749
"""
2750
2750
cache_root1 = tmp_path / "test_wf_cache3"
@@ -2776,7 +2776,7 @@ def Worky2(x, y=None):
2776
2776
worky2 = Worky2 (x = 2 )
2777
2777
2778
2778
with Submitter (
2779
- worker = worker , cache_root = cache_root2 , cache_locations = cache_root1
2779
+ worker = worker , cache_root = cache_root2 , readonly_caches = cache_root1
2780
2780
) as sub :
2781
2781
results2 = sub (worky2 )
2782
2782
@@ -2795,7 +2795,7 @@ def Worky2(x, y=None):
2795
2795
def test_wf_state_cachelocations (worker : str , tmp_path : Path ):
2796
2796
"""
2797
2797
Two identical wfs (with states) with provided cache_root;
2798
- the second worky has cache_locations and should not recompute the results
2798
+ the second worky has readonly_caches and should not recompute the results
2799
2799
"""
2800
2800
cache_root1 = tmp_path / "test_wf_cache3"
2801
2801
cache_root1 .mkdir ()
@@ -2831,7 +2831,7 @@ def Worky2(x, y):
2831
2831
2832
2832
t0 = time .time ()
2833
2833
with Submitter (
2834
- worker = worker , cache_root = cache_root2 , cache_locations = cache_root1
2834
+ worker = worker , cache_root = cache_root2 , readonly_caches = cache_root1
2835
2835
) as sub :
2836
2836
results2 = sub (worky2 )
2837
2837
@@ -2858,7 +2858,7 @@ def Worky2(x, y):
2858
2858
def test_wf_state_cachelocations_forcererun (worker : str , tmp_path : Path ):
2859
2859
"""
2860
2860
Two identical wfs (with states) with provided cache_root;
2861
- the second worky has cache_locations ,
2861
+ the second worky has readonly_caches ,
2862
2862
but submitter is called with rerun=True, so should recompute
2863
2863
"""
2864
2864
cache_root1 = tmp_path / "test_wf_cache3"
@@ -2919,7 +2919,7 @@ def Worky2(x, y):
2919
2919
def test_wf_state_cachelocations_updateinp (worker : str , tmp_path : Path ):
2920
2920
"""
2921
2921
Two identical wfs (with states) with provided cache_root;
2922
- the second worky has cache_locations and should not recompute the results
2922
+ the second worky has readonly_caches and should not recompute the results
2923
2923
(the lazy input of the node is updated to the correct one,
2924
2924
i.e. the same as in worky1, after adding the node to the worky)
2925
2925
"""
@@ -2956,7 +2956,7 @@ def Worky2(x, y):
2956
2956
2957
2957
t0 = time .time ()
2958
2958
with Submitter (
2959
- worker = worker , cache_root = cache_root2 , cache_locations = cache_root1
2959
+ worker = worker , cache_root = cache_root2 , readonly_caches = cache_root1
2960
2960
) as sub :
2961
2961
results2 = sub (worky2 )
2962
2962
@@ -2982,7 +2982,7 @@ def Worky2(x, y):
2982
2982
def test_wf_state_n_nostate_cachelocations (worker : str , tmp_path : Path ):
2983
2983
"""
2984
2984
Two wfs with provided cache_root, the first one has no state, the second has;
2985
- the second worky has cache_locations and should not recompute only one element
2985
+ the second worky has readonly_caches and should not recompute only one element
2986
2986
"""
2987
2987
cache_root1 = tmp_path / "test_wf_cache3"
2988
2988
cache_root1 .mkdir ()
@@ -3014,7 +3014,7 @@ def Worky2(x, y):
3014
3014
worky2 = Worky2 ().split (("x" , "y" ), x = [2 , 20 ], y = [3 , 4 ])
3015
3015
3016
3016
with Submitter (
3017
- worker = worker , cache_root = cache_root2 , cache_locations = cache_root1
3017
+ worker = worker , cache_root = cache_root2 , readonly_caches = cache_root1
3018
3018
) as sub :
3019
3019
results2 = sub (worky2 )
3020
3020
@@ -3027,9 +3027,9 @@ def Worky2(x, y):
3027
3027
def test_wf_nostate_cachelocations_updated (worker : str , tmp_path : Path ):
3028
3028
"""
3029
3029
Two identical wfs with provided cache_root;
3030
- the second worky has cache_locations in init,
3030
+ the second worky has readonly_caches in init,
3031
3031
that is later overwritten in Submitter.__call__;
3032
- the cache_locations from call doesn't exist so the second task should run again
3032
+ the readonly_caches from call doesn't exist so the second task should run again
3033
3033
"""
3034
3034
cache_root1 = tmp_path / "test_wf_cache3"
3035
3035
cache_root1 .mkdir ()
@@ -3065,9 +3065,9 @@ def Worky2(x, y):
3065
3065
worky2 = Worky2 (x = 2 , y = 3 )
3066
3066
3067
3067
t0 = time .time ()
3068
- # changing cache_locations to non-existing dir
3068
+ # changing readonly_caches to non-existing dir
3069
3069
with Submitter (
3070
- worker = worker , cache_root = cache_root2 , cache_locations = cache_root1_empty
3070
+ worker = worker , cache_root = cache_root2 , readonly_caches = cache_root1_empty
3071
3071
) as sub :
3072
3072
results2 = sub (worky2 )
3073
3073
@@ -3124,7 +3124,7 @@ def Worky2(x, y):
3124
3124
worky2 = Worky2 (x = 2 , y = 3 )
3125
3125
3126
3126
with Submitter (
3127
- worker = worker , cache_root = cache_root2 , cache_locations = cache_root1
3127
+ worker = worker , cache_root = cache_root2 , readonly_caches = cache_root1
3128
3128
) as sub :
3129
3129
results2 = sub (worky2 )
3130
3130
@@ -3144,7 +3144,7 @@ def Worky2(x, y):
3144
3144
def test_wf_ndstate_cachelocations (worker : str , tmp_path : Path ):
3145
3145
"""
3146
3146
Two wfs with identical inputs and node states;
3147
- the second worky has cache_locations and should not recompute the results
3147
+ the second worky has readonly_caches and should not recompute the results
3148
3148
"""
3149
3149
cache_root1 = tmp_path / "test_wf_cache3"
3150
3150
cache_root1 .mkdir ()
@@ -3179,7 +3179,7 @@ def Worky2(x, y):
3179
3179
3180
3180
t0 = time .time ()
3181
3181
with Submitter (
3182
- worker = worker , cache_root = cache_root2 , cache_locations = cache_root1
3182
+ worker = worker , cache_root = cache_root2 , readonly_caches = cache_root1
3183
3183
) as sub :
3184
3184
results2 = sub (worky2 )
3185
3185
@@ -3199,7 +3199,7 @@ def Worky2(x, y):
3199
3199
def test_wf_ndstate_cachelocations_forcererun (worker : str , tmp_path : Path ):
3200
3200
"""
3201
3201
Two wfs with identical inputs and node states;
3202
- the second worky has cache_locations ,
3202
+ the second worky has readonly_caches ,
3203
3203
but submitter is called with rerun=True, so should recompute
3204
3204
"""
3205
3205
cache_root1 = tmp_path / "test_wf_cache3"
@@ -3257,7 +3257,7 @@ def Worky2(x, y):
3257
3257
def test_wf_ndstate_cachelocations_updatespl (worker : str , tmp_path : Path ):
3258
3258
"""
3259
3259
Two wfs with identical inputs and node state (that is set after adding the node!);
3260
- the second worky has cache_locations and should not recompute the results
3260
+ the second worky has readonly_caches and should not recompute the results
3261
3261
"""
3262
3262
cache_root1 = tmp_path / "test_wf_cache3"
3263
3263
cache_root1 .mkdir ()
@@ -3292,7 +3292,7 @@ def Worky2(x, y):
3292
3292
3293
3293
t0 = time .time ()
3294
3294
with Submitter (
3295
- worker = worker , cache_root = cache_root2 , cache_locations = cache_root1
3295
+ worker = worker , cache_root = cache_root2 , readonly_caches = cache_root1
3296
3296
) as sub :
3297
3297
results2 = sub (worky2 )
3298
3298
@@ -3317,7 +3317,7 @@ def Worky2(x, y):
3317
3317
def test_wf_ndstate_cachelocations_recompute (worker : str , tmp_path : Path ):
3318
3318
"""
3319
3319
Two wfs (with nodes with states) with provided cache_root;
3320
- the second worky has cache_locations and should not recompute the results
3320
+ the second worky has readonly_caches and should not recompute the results
3321
3321
"""
3322
3322
cache_root1 = tmp_path / "test_wf_cache3"
3323
3323
cache_root1 .mkdir ()
@@ -3352,7 +3352,7 @@ def Worky2(x, y):
3352
3352
3353
3353
t0 = time .time ()
3354
3354
with Submitter (
3355
- worker = worker , cache_root = cache_root2 , cache_locations = cache_root1
3355
+ worker = worker , cache_root = cache_root2 , readonly_caches = cache_root1
3356
3356
) as sub :
3357
3357
results2 = sub (worky2 )
3358
3358
0 commit comments