<#1917 Local execution with compiled graph(#4080)>...
# flyte-github
a
#1917 Local execution with compiled graph(#4080) Pull request opened by ericwudayi TL;DR Support user-defined execution sequence in local pyfylte. Now subworkflow/tasks can be sequence by
>>
operation within workflow. for example:
Copy code
@workflow()
def wf():
  a = print_a() # task: print ("a")
  b = print_b() # task: print ("b")
  b >> a
wf() # should output "b\na"
Type ☐ Bug Fix ☑︎ Feature ☐ Plugin Are all requirements met? ☑︎ Code completed ☐ Smoke tested ☑︎ Unit tests added ☐ Code documentation added ☑︎ Any pending items have an associated Issue Complete description 1. Support
BranchNode
local execution by adding
ConditionalSection
in
__init__
2. Add
__call__
in
BrachNode
to eval all its expression via kwargs. 3. Eval all the _lhs and _rhs of
ComparisonExpression
and
ConjunctionExpression
via DFS. 4. Support local execution on
Gate
--> Need check, I just use the first key in kwargs as output. 5. Implemented the Core algorithm. a. Do topological sort on
workflow._nodes
, check if cycle exists. b. Follow the implementation in
ImperativeWorkflow
c. Support
dynamic
by compiled one more time. d. Recursive execution with BranchNode f. Modify dynamic local execution flow Tracking Issue flyteorg/flyte#4080 Follow-up issue NA OR https://github.com/flyteorg/flyte/issues/ flyteorg/flytekit ✅ All checks have passed 2/2 successful checks