Skip to content

Commit 1bf46fc

Browse files
committed
add task number
1 parent 37fa3f1 commit 1bf46fc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

wfcommons/wfbench/translator/pycompss.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,10 @@ def _pycompss_code(self) -> None:
7575
# data_folder = self.output_folder.joinpath("data")
7676
data_folder = "os.getenv('WFBENCH_DATA')"
7777
all_pycompss_tasks_as_functions = []
78+
task_number = 1
7879
for task in self.tasks.values():
79-
function_name = task.name
80+
function_name = f"{task.name}{task_number}"
81+
task_number += 1
8082
is_root_task = True if task.task_id in self.root_task_names else False
8183
all_input_files_name = []
8284
task_parameter_names_file_in = ""

0 commit comments

Comments
 (0)