python from taskflow import engines from taskflow.patterns import linear_flow from taskflow import task class Task1(task.Task): def execute(self): print("Executing Task 1") class Task2(task.Task): def execute(self): print("Executing Task 2") class Task3(task.Task): def execute(self): print("Executing Task 3") flow = linear_flow.Flow("example_flow") flow.add(Task1(), Task2(), Task3()) engine = engines.load(flow) engine.run()


上一篇:
下一篇:
切换中文