Skip to content
Snippets Groups Projects

V1.0

Merged Aurel Istrate requested to merge v1.0 into main
Viewing commit e1bb5678
Prev
Show latest version
1 file
+ 4
1
Preferences
Compare changes
+ 4
1
@@ -31,6 +31,9 @@ missing_data = '--'
# Label that should be in GPU partitions
gpu_partition_label = 'gpu'
# Minimum uid for generic users (not operators)
min_user_uid = 10000
def byte_size(s=None):
"""Convert values with suffix to bytes, return -1.0 for missing data"""
# Check for missing or strange values
@@ -177,7 +180,7 @@ def get_state(jobstate, name, fieldname):
found_cancelled_by = True
# Replace uid by 'user' or 'operator'
uid = int(states[index][12:])
if uid > 2000:
if uid > min_user_uid:
states[index] = 'CANCELLED by user'
else:
states[index] = 'CANCELLED by operator'