GitHub user chenlica added a comment to the discussion: Discuss workflow macro design and lifecycle
@dinukadesilva Thank you for the insightful comments. All these points look valid to me. Here are my thoughts: 1. I also believe it's good to treat a "macro" as a workflow since it's simpler to the users to understand and easier to implement. We could treat a macro as a workflow with some properties that can be parameterized. 2. I think the topic about "Execution requirements" for a macro is orthogonal to this discussion as it is also related to a workflow in general. We can discuss it separately. 3. For now we can focus on the abstraction and user experience. Once we agree on the right design, we then need to consider how it affects compilation, optimization, and scheduling of a workflow. My gut feeling is that if we want to "unify" workflows and macros, the engine should be able to dynamically run a macro in a "parent workflow," without taking a simple approach of "statically expanding the macro in the parent workflow." 4. This discussion also triggers a question about the relationship between a "workflow" and an "operator." I think these two resources are also very similar conceptually. But they have different lifecycles and characteristics. An operator (not an arbitrary UDF operator created by a user) is statically decided when we deploy a Texera instance, and relatively stable. A workflow can be dynamically created by users and have more more frequent CRUD operations. More discussions are needed on this topic. GitHub link: https://github.com/apache/texera/discussions/5248#discussioncomment-19881891 ---- This is an automatically sent email for [email protected]. To unsubscribe, please send an email to: [email protected]
