apache / apache/dolphinscheduler

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

Open
#16,706 14 comments 0 reactions 1 assignee Claimed by @dill21yu View on GitHub
discussion DSIP
Dominant language
Java
Stars
14.5k
Forks
5.1k
Avg merge
1d 21h
Merged PRs (30d)
28

Description

### Search before asking

- [X] I had searched in the [DSIP](https://github.com/apache/dolphinscheduler/issues/14102) and found no similar DSIP.

### 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

- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.