Skip to content

Commit dfdb321

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

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

wfcommons/wfchef/skeletons/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,3 @@
77
# it under the terms of the GNU General Public License as published by
88
# the Free Software Foundation, either version 3 of the License, or
99
# (at your option) any later version.
10-
11-

wfcommons/wfgen/abstract_recipe.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,8 @@ def build_workflow(self, workflow_name: Optional[str] = None) -> Workflow:
142142
:return: A synthetic workflow instance object.
143143
:rtype: Workflow
144144
"""
145-
workflow = Workflow(name=self.name + "-synthetic-instance" if not workflow_name else workflow_name, makespan=None)
145+
workflow = Workflow(name=self.name + "-synthetic-instance" if not workflow_name else workflow_name,
146+
makespan=None)
146147
graph = self.generate_nx_graph()
147148

148149
task_names = {}
@@ -210,9 +211,12 @@ def _generate_task(self, task_name: str,
210211

211212
return Task(
212213
name=task_id,
214+
task_id='0{}'.format(task_id.split('_0')[1]),
215+
category=task_name,
213216
task_type=TaskType.COMPUTE,
214217
runtime=runtime,
215218
machine=None,
219+
program=task_name,
216220
args=[],
217221
cores=1,
218222
avg_cpu=None,

0 commit comments

Comments
 (0)