Skip to content
Snippets Groups Projects
Commit 924aab9d authored by Jeremy Auguste's avatar Jeremy Auguste
Browse files

Catching possible lack of karma

parent 403b0ac8
Branches
Tags
No related merge requests found
......@@ -84,7 +84,10 @@ def main():
wall_time = int(tokens[0]) * 3600 + int(tokens[1]) * 60 + int(tokens[2])
resources = int(re.search(resources_pattern, job_info["message"]).group(1))
queue = re.search(queue_pattern, job_info["message"]).group(1)
try:
karma = float(re.search(karma_pattern, job_info["message"]).group(1))
except AttributeError:
karma = 0.0
devices = job_info["assigned_network_address"]
gpu = re.search(gpu_pattern, job_info["properties"]) is not None
job = Job(job_id, elapsed_time, wall_time, resources, devices, gpu, queue, karma)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment