Skip to content

Commit a8bddae

Browse files
committed
#19: making WfCommons compatible with WfFormat v1.2
1 parent e73fbbd commit a8bddae

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

wfcommons/common/task.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,10 @@ def as_dict(self) -> Dict:
131131
}
132132
if self.cores:
133133
task_obj['cores'] = self.cores
134+
if self.task_id:
135+
task_obj['id'] = self.task_id
136+
if self.category:
137+
task_obj['category'] = self.category
134138
if self.avg_cpu:
135139
task_obj['avgCPU'] = self.avg_cpu
136140
if self.bytes_read:

0 commit comments

Comments
 (0)