<#4601 [Core feature] Support Multi-Thread executi...
# flyte-github
c
#4601 [Core feature] Support Multi-Thread execution in Local Execution Issue created by ericwudayi ### Motivation: Why do you think this is important? Local execution supports chaining in flyteorg/flytekit#1917. Supporting multi-thread execution can accelerate the total execution time, and it is possible very useful for future hybrid mode execution mentioned in #4205. ### Goal: What should the final outcome look like, ideally? If user define the chain of execution, local execution can support multi-thread execution. The final outcome should be exactly the same with current outcome but with much faster execution time. ### Describe alternatives you've considered NA ### Propose: Link/Inline OR Additional context
Copy code
@task
def t1(a:int) -> int:
    return a + 1

@task
def t2(a: int) -> int:
    return a + 2

@task 
def t3(a: int) ->int:
  return a + 3


## a3 and a1 can execute in the same time. and a2 execute only when a1 is complete.
@workflow
def wf(a: int)-> int:
   a1 = t1(a)
   a2 = t2(a1)
   a3 = t3(a)
   a1 >> a2
   a3
### Are you sure this issue hasn't been raised already? • Yes ### Have you read the Code of Conduct? • Yes flyteorg/flyte