There are 2 Workflow, Can the Workflow2 can reuse ...
# ask-the-community
r
There are 2 Workflow, Can the Workflow2 can reuse the task from workflow1
s
Yes, you can reuse tasks in how many ever workflows you desire.
r
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
It should work. What's the error you're seeing?
r
Oh, sorry my bad, I forgot to specific the image when regist wf which make miss library to run task. thanks u alot :V