There are 2 Workflow, Can the Workflow2 can reuse the task from workflow1
t
tall-lock-23197
10/05/2023, 9:44 AM
Yes, you can reuse tasks in how many ever workflows you desire.
f
full-evening-87657
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
.
full-evening-87657
10/05/2023, 9:50 AM
if in workflow_2.py, I import workflow_1.task_1, The task_1 cannot recognize as the task of workflow_2.py
t
tall-lock-23197
10/05/2023, 10:01 AM
It should work. What's the error you're seeing?
f
full-evening-87657
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