Skip to content

Commit 8a3bb3d

Browse files
committed
swift/t with flowcept
1 parent 861e47f commit 8a3bb3d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • wfcommons/wfbench/translator/templates/swift_t_templates

wfcommons/wfbench/translator/templates/swift_t_templates/workflow.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ cpu_threads = int(10 * percent_cpu)
9090
output_data = {"%s": int(%i)}
9191
dep = %i
9292
workflow_id = "%s"
93+
task_id = f"{workflow_id}_{task_name}"
9394
9495
if 'workflow_id':
9596
logging.info("Running with Flowcept.")
@@ -98,7 +99,7 @@ if 'workflow_id':
9899
bundle_exec_id=workflow_id,
99100
start_persistence=False, save_workflow=False)
100101
fc.start()
101-
fc_task = FlowceptTask(workflow_id=workflow_id, task_id=task_name, used={
102+
fc_task = FlowceptTask(workflow_id=workflow_id, task_id=task_id, used={
102103
'workflow_id': workflow_id,
103104
'name': task_name,
104105
'percent-cpu': percent_cpu,

0 commit comments

Comments
 (0)