We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a96b9d8 commit 4298977Copy full SHA for 4298977
1 file changed
coldfront/plugins/slurmrest/associations.py
@@ -196,6 +196,12 @@ def import_node_data(self):
196
)
197
198
def determine_node_owner(self, node_data):
199
+ features = node_data.get('features', [])
200
+ joined = ','.join(features)
201
+ if 'o_s_' in joined or 'o_g_' in joined:
202
+ for feature in features:
203
+ if feature.startswith('o_s_') or feature.startswith('o_g_'):
204
+ return feature[4:]
205
node_partitions = node_data.get('partitions', [])
206
for partition_name in ['serial_requeue', 'gpu_requeue']:
207
if partition_name in node_partitions:
0 commit comments