apache / dolphinscheduler

Apache DolphinScheduler is the modern data orchestration platform. Agile to create high performance workflow with low-code
https://dolphinscheduler.apache.org/
Apache License 2.0
12.81k stars 4.6k forks source link

[DSIP-77][task-api] Add cycle dependency type #16706

Open fengjian1129 opened 1 week ago

fengjian1129 commented 1 week ago

Search before asking

Motivation

DolphinScheduler currently lacks dependency types scheduled at the same cycle level, such as the current thisMonth type, which mainly detects instances that have been successfully executed every day of the current month before they can continue to execute. In most data generation, two tasks scheduled at the same month level are also required, and only instances that have been successfully executed once in the current month need to be detected. However, other scheduling dependency types also have similar issues, such as lastMonth,lastWeek,last7Days, last3Days, etc. They are all task dependency types that detect successful instances within a certain time range. We need a task dependency type that only detects one successful instance within the execution cycle.

Design Detail

Add cycle dependency type , such as last1Date last2Date ... lastNdate lastNmonthDate lastNWeek,etc. only detects one successful instance within the execution cycle.

Compatibility, Deprecation, and Migration Plan

No response

Test Plan

No response

Code of Conduct

davidzollo commented 1 week ago

What does the UI look like when lastNdate is selected?

fengjian1129 commented 1 week ago

What does the UI look like when lastNdate is selected?

Now I want to implement some fixed types first because I can't write the front-end interface. I can organize the documents for the newly added fixed scheduling types and submit them to the community

SbloodyS commented 1 week ago

I think this proposal is very good. I'm +1 on this.

Now I want to implement some fixed types first because I can't write the front-end interface. I can organize the documents for the newly added fixed scheduling types and submit them to the community

Since this kind of modification is not very huge. Only when the front-end and back-end as well as the documents and tests are complete will the merger be allowed.

davidzollo commented 1 week ago

+1

fengjian1129 commented 1 week ago

I think this proposal is very good. I'm +1 on this.

Now I want to implement some fixed types first because I can't write the front-end interface. I can organize the documents for the newly added fixed scheduling types and submit them to the community

Since this kind of modification is not very huge. Only when the front-end and back-end as well as the documents and tests are complete will the merger be allowed.

May I ask if there is any documentation for compiling backend code and frontend code? I want to try debugging, I only submitted backend code before

SbloodyS commented 1 week ago

May I ask if there is any documentation for compiling backend code and frontend code? I want to try debugging, I only submitted backend code before

You can take a look at https://dolphinscheduler.apache.org/zh-cn/docs/dev/contribute/development-environment-setup

fengjian1129 commented 1 week ago

May I ask if there is any documentation for compiling backend code and frontend code? I want to try debugging, I only submitted backend code before

You can take a look at https://dolphinscheduler.apache.org/zh-cn/docs/dev/contribute/development-environment-setup

thx , bro