Skip to content

Commit c2826c6

Browse files
committed
adding flowcept and IO for swift/t
1 parent 7a05686 commit c2826c6

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

  • wfcommons/wfbench/translator/templates/swift_t_templates

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,12 @@ global const string flowcept_start =
99
workflow_id = "%s"
1010
from flowcept.flowcept_api.flowcept_controller import Flowcept
1111
flowcept_agent = Flowcept(workflow_id=workflow_id, workflow_name="%s", bundle_exec_id=workflow_id)
12-
flowcept_agent.start()
12+
13+
try:
14+
flowcept_agent.start()
15+
except Exception:
16+
import traceback
17+
traceback.print_exc()
1318
""";
1419

1520
string command =
@@ -183,6 +188,7 @@ logging.info(f"Benchmark {task_name} completed!")
183188
if 'workflow_id':
184189
fc_task.end()
185190
fc.stop()
191+
time.sleep(1)
186192
""";
187193

188194
# Generated code goes here

0 commit comments

Comments
 (0)