Workflow inheritance - reusing workflow and task logic #35
paweljasinski
started this conversation in
General
Replies: 1 comment 1 reply
-
I think I have figured out the problem. The super workflow class has no edges. Without edges all the functions are not considered tasks by meta machinery and as a result are missing the name, type and workflow_cls attributes |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We have 3 workflows with ~90% of the flow logic and tasks identical.
Initially we tried to reuse the common parts using inheritance.
This didn't work because of the way name and type attribute of a tasks are assigned.
We ended up repeating all the tasks in sub classes and calling explicitly using super().
Is there a better way?
Beta Was this translation helpful? Give feedback.
All reactions