Skip to content

Commit 4727005

Browse files
committed
fixing bug on swift-t
1 parent 46a18ac commit 4727005

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ dep = %i
9090
workflow_id = "%s".strip()
9191
task_id = f"{workflow_id}_{task_name}"
9292
93-
if 'workflow_id':
93+
if workflow_id:
9494
__import__("logging").info("Running with Flowcept.")
9595
from flowcept import Flowcept, FlowceptTask
9696
fc = Flowcept(workflow_id=workflow_id,
@@ -134,7 +134,7 @@ mod.run(
134134
135135
__import__("logging").info(f"Benchmark {task_name} completed!")
136136
137-
if 'workflow_id':
137+
if workflow_id:
138138
fc_task.end()
139139
fc.stop()
140140
""";

0 commit comments

Comments
 (0)