https://flyte.org logo
#ask-the-community
Title
# ask-the-community
r

Ryuu

10/05/2023, 8:59 AM
There are 2 Workflow, Can the Workflow2 can reuse the task from workflow1
s

Samhita Alla

10/05/2023, 9:44 AM
Yes, you can reuse tasks in how many ever workflows you desire.
r

Ryuu

10/05/2023, 9:49 AM
I mean that The Workflow_1.py can call to task are implemented in workflow_2.py ( task are implement in python code). Because each task are defined in 1 Dags python script must have
@task
.
if in workflow_2.py, I import workflow_1.task_1, The task_1 cannot recognize as the task of workflow_2.py
s

Samhita Alla

10/05/2023, 10:01 AM
It should work. What's the error you're seeing?
r

Ryuu

10/05/2023, 10:16 AM
Oh, sorry my bad, I forgot to specific the image when regist wf which make miss library to run task. thanks u alot :V