You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by GitBox <gi...@apache.org> on 2020/04/30 06:49:13 UTC

[GitHub] [incubator-dolphinscheduler] peilongwu opened a new issue #2587: [Feature][Major] Support dummy task like airflow 支持像 Airflow 中的虚拟任务

peilongwu opened a new issue #2587:
URL: https://github.com/apache/incubator-dolphinscheduler/issues/2587


   **Support dummy task like airflow 支持像 Airflow 中的虚拟任务**
   
   场景描述:项目中,有已经产品化的 DAG 文件,DAG 文件中包括不同的模块,这些模块之间的有些点是相互依赖的,有些不是,在用户购买不同模块时,需要把未购买模块且其他已购模块未依赖的点设置为 Dummy Task,这样实际这些任务就不会执行,这样设置的好处是产品统一性和图的完整性,在AirFlow中,这些是通过DummyOperator完成的。
   
   For example, in my project, it has a productized DAG file. The file contains different modules, some of which are interdependent and some of which are not. When customers purchase different modules, we need to set some tasks as dummy tasks, which some modules are not purchased and the purchased module is not dependent. Because of this setting, these dummy tasks are actually not executed. The benefits of this setup are product unity and diagram integrity. In airflow, these task execute by dummy operator.
   
   ** Realize 实现方式**
   
   Dummy Task 本身实现很简单,只是需要与其他任务配合使用,但任务执行方式设置为 dummy 时,实际的任务不执行,执行 Dummy Task。
   
   Dummy Task is easy to realize, but it need to use with other different tasks. When the task's executed type is set to dummy type, the task are executed as a dummy task and the real task is not executed.
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org