diff options
| author | leonoverweel <l.overweel@gmail.com> | 2017-02-27 16:12:50 +0100 |
|---|---|---|
| committer | leonoverweel <l.overweel@gmail.com> | 2017-02-27 16:12:50 +0100 |
| commit | ace25f0382c20b0e79afa85227dc155b5498a1dc (patch) | |
| tree | a3038bda2993e1e6976feb9eb77567672e8182d7 /opendc/models/task.py | |
| parent | 855b654942d400204ea3ce952b5fe0cebf8492c2 (diff) | |
Update tasks to add parallelizability and core use
Diffstat (limited to 'opendc/models/task.py')
| -rw-r--r-- | opendc/models/task.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/opendc/models/task.py b/opendc/models/task.py index 8ec03568..aa9838a5 100644 --- a/opendc/models/task.py +++ b/opendc/models/task.py @@ -8,12 +8,13 @@ class Task(Model): 'startTick': 'start_tick', 'totalFlopCount': 'total_flop_count', 'traceId': 'trace_id', - 'taskDependencyId': 'task_dependency_id' + 'taskDependencyId': 'task_dependency_id', + 'parallelizability': 'parallelizability' } } TABLE_NAME = 'tasks' - COLUMNS = ['id', 'start_tick', 'total_flop_count', 'trace_id', 'task_dependency_id'] + COLUMNS = ['id', 'start_tick', 'total_flop_count', 'trace_id', 'task_dependency_id', 'parallelizability'] COLUMNS_PRIMARY_KEY = ['id'] def google_id_has_at_least(self, google_id, authorization_level): |
