Commit 012af1fa authored by Brewer, Wes's avatar Brewer, Wes
Browse files

Add future note about simplification

parent 05c26b37
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
from enum import Enum

"""
Note: want to simplify this in the future to use a minimal required set of job attributes, 
the standard workload format (swf) https://www.cs.huji.ac.il/labs/parallel/workload/swf.html

Implementing such using something like:

    from types import SimpleNamespace
    job = SimpleNamespace(**job_dict(...))
"""

def job_dict(nodes_required, name, account, \
             cpu_trace, gpu_trace, ntx_trace, nrx_trace, \
             end_state, scheduled_nodes, job_id, priority=0, partition=0,