GitHub user dinukadesilva added a comment to the discussion: Discuss workflow macro design and lifecycle
Hi, I have a some user-centric thoughts on how workflows could become reusable macros and how they could be managed in Texera. I'm a little against of having macros as a separate entity. ### 1. Any workflow should be able to become a macro I believe allowing any workflow to be published and used as a macro would be a more user friendly approach to reusability. The reason I say this is that the more terminology users have to learn, the more they have to understand the system before they can use it intuitively. I would like to see this as a way for researchers to organize their algorithms into multiple smaller workflows and reuse them as needed as well. For example, a researcher could create separate workflows for data preprocessing, feature extraction, and classification. These workflows could remain private or be shared with others. The researcher could then combine them into a larger algorithm, publish that workflow as a macro, and allow others to use it. This could be particularly useful when reproducing or building upon someone else's research. A researcher might want to use an algorithm associated with a particular paper as a macro within their own workflow. ### 2. Workflow and macro dependencies I think it would be useful to make the relationships between workflows and macros visible. When viewing a workflow (both on listing and detailed view), users should be able to see which macros it depends on. Similarly, when viewing a particular macro, users should be able to see which workflows are using it. This information could be useful in several ways. - Workflow authors can easily understand the dependencies of their workflows. - Macro authors can understand how their work is being reused. - Macro authors can get usage statistics and provide guidance to researchers using their macros. - Users can be informed when a macro they depend on is deprecated or updated. - It would also be useful to associate a macro with its original research paper or publication, where applicable. ### 3. Publishing a workflow as a macro The workflow author should be able to define the following before publishing it. - **Inputs and outputs:** Their types, required parameters, and default values. - **Execution requirements:** The environment and resources needed to execute the workflow. The author could also specify whether the macro can use the author's compute resources or whether users must provide their own. - **Access restrictions:** Whether the macro is publicly available, restricted to an organization or group, or available only to selected users. The author could also restrict which compute resources are allowed to execute the macro, including whether users need an allocation on those resources. Once these details are defined, the author should be able to publish the workflow as a reusable macro. I would also suggest that researchers specify the macro's workflow version they want to use when including a macro in their workflows. This would help avoid conflicts when the original workflow is updated. It would also mean that we may not need to maintain a separate versioning system specifically for macros, since macros could simply reference specific versions of the workflows. ### 4. Macro execution and visibility I believe macros should maintain their own execution history, regardless of which parent workflow triggered them. The macro author should be able to see the executions of their macro across the different workflows that use it. This could provide useful information about usage, execution performance, and potential issues. On the other hand, when someone uses a macro within their workflow, I think the macro should generally be treated just as another single operator. The user trusts the algorithm implemented by the macro and does not necessarily need to see all the internal execution details. I would make the internal execution details available as an optional view rather than displaying them by default. This would provide a balance between keeping the parent workflow simple and allowing users to inspect the internal execution when needed. GitHub link: https://github.com/apache/texera/discussions/5248#discussioncomment-19870415 ---- This is an automatically sent email for [email protected]. To unsubscribe, please send an email to: [email protected]
