Skip to content

Commit 6f43960

Browse files
committed
Allow specifying multiple Stampede2 queues in alloc_Stampede2_queue
Also prefer alloc_Stampede2_queues (plural) now that it's a stringlist; keep the old name for backward compat.
1 parent 50e5a55 commit 6f43960

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

flock.opensciencegrid.org/frontend-template.xml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1127,14 +1127,14 @@
11271127
<match
11281128
policy_file="/opt/git/flock.opensciencegrid.org/topology_match_policy.py"
11291129
match_expr="True"
1130-
start_expr='(OSG_PROJECT_RESTRICTION) &amp;&amp; (isString(TARGET.Desired_Allocations) &amp;&amp; stringListIMember("Stampede2", TARGET.Desired_Allocations)) &amp;&amp; (TARGET.ITB_Sites =!= True) &amp;&amp; ((TARGET.alloc_Stampede2_queue ?: "normal") =?= "normal")'>
1131-
<factory query_expr='FactoryType == "production" &amp;&amp; stringListMember("OSG_UTAustin_Zimmerman", GLIDEIN_Supported_VOs) &amp;&amp; ((GLIDEIN_BatchQueue ?: "normal") =?= "normal")'>
1130+
start_expr='(OSG_PROJECT_RESTRICTION) &amp;&amp; (isString(TARGET.Desired_Allocations) &amp;&amp; stringListIMember("Stampede2", TARGET.Desired_Allocations)) &amp;&amp; (TARGET.ITB_Sites =!= True) &amp;&amp; (stringListIMember("normal", (TARGET.alloc_Stampede2_queues ?: (TARGET.alloc_Stampede2_queue ?: "normal"))))'>
1131+
<factory query_expr='FactoryType == "production" &amp;&amp; stringListMember("OSG_UTAustin_Zimmerman", GLIDEIN_Supported_VOs) &amp;&amp; ((GLIDEIN_BatchQueue ?: "normal") == "normal")'>
11321132
<match_attrs>
11331133
</match_attrs>
11341134
<collectors>
11351135
</collectors>
11361136
</factory>
1137-
<job query_expr='(projectName=?="UTAustin_Zimmerman") &amp;&amp; (isString(Desired_Allocations) &amp;&amp; stringListIMember("Stampede2", Desired_Allocations)) &amp;&amp; (isUndefined(RequestGPUs) || RequestGPUs == 0) &amp;&amp; ((alloc_Stampede2_queue ?: "normal") =?= "normal")'>
1137+
<job query_expr='(projectName=?="UTAustin_Zimmerman") &amp;&amp; (isString(Desired_Allocations) &amp;&amp; stringListIMember("Stampede2", Desired_Allocations)) &amp;&amp; (isUndefined(RequestGPUs) || RequestGPUs == 0) &amp;&amp; (stringListIMember("normal", (alloc_Stampede2_queues ?: (alloc_Stampede2_queue ?: "normal"))))'>
11381138
<match_attrs>
11391139
</match_attrs>
11401140
<schedds>
@@ -1190,14 +1190,14 @@
11901190
<match
11911191
policy_file="/opt/git/flock.opensciencegrid.org/topology_match_policy.py"
11921192
match_expr="True"
1193-
start_expr='(OSG_PROJECT_RESTRICTION) &amp;&amp; (isString(TARGET.Desired_Allocations) &amp;&amp; stringListIMember("Stampede2", TARGET.Desired_Allocations)) &amp;&amp; (TARGET.ITB_Sites =!= True) &amp;&amp; ((TARGET.alloc_Stampede2_queue ?: "normal") =?= "skx-normal")'>
1194-
<factory query_expr='FactoryType == "production" &amp;&amp; stringListMember("OSG_UTAustin_Zimmerman", GLIDEIN_Supported_VOs) &amp;&amp; ((GLIDEIN_BatchQueue ?: "normal") =?= "skx-normal")'>
1193+
start_expr='(OSG_PROJECT_RESTRICTION) &amp;&amp; (isString(TARGET.Desired_Allocations) &amp;&amp; stringListIMember("Stampede2", TARGET.Desired_Allocations)) &amp;&amp; (TARGET.ITB_Sites =!= True) &amp;&amp; (stringListIMember("skx-normal", (TARGET.alloc_Stampede2_queues ?: (TARGET.alloc_Stampede2_queue ?: "normal"))))'>
1194+
<factory query_expr='FactoryType == "production" &amp;&amp; stringListMember("OSG_UTAustin_Zimmerman", GLIDEIN_Supported_VOs) &amp;&amp; ((GLIDEIN_BatchQueue ?: "normal") == "skx-normal")'>
11951195
<match_attrs>
11961196
</match_attrs>
11971197
<collectors>
11981198
</collectors>
11991199
</factory>
1200-
<job query_expr='(projectName=?="UTAustin_Zimmerman") &amp;&amp; (isString(Desired_Allocations) &amp;&amp; stringListIMember("Stampede2", Desired_Allocations)) &amp;&amp; (isUndefined(RequestGPUs) || RequestGPUs == 0) &amp;&amp; ((alloc_Stampede2_queue ?: "normal") =?= "skx-normal")'>
1200+
<job query_expr='(projectName=?="UTAustin_Zimmerman") &amp;&amp; (isString(Desired_Allocations) &amp;&amp; stringListIMember("Stampede2", Desired_Allocations)) &amp;&amp; (isUndefined(RequestGPUs) || RequestGPUs == 0) &amp;&amp; (stringListIMember("skx-normal", (alloc_Stampede2_queues ?: (alloc_Stampede2_queue ?: "normal"))))'>
12011201
<match_attrs>
12021202
</match_attrs>
12031203
<schedds>

0 commit comments

Comments
 (0)