Skip to content

[Feature][task-api] Add cycle time types that depend on task types and improve the cycle time documentation to fully explain the meaning of each cycle time #16704

@fengjian1129

Description

@fengjian1129

Search before asking

  • I had searched in the issues and found no similar feature requirement.

Description

The dependency cycle and frequency of the dependent task type are not very consistent with the actual dependency scenarios in data production. For example, multiple monthly scheduled tasks only need to rely on the task instance that was executed once in the previous month, but the existing functionality lacks this logic.
Similar problems as described above still exist in: last2Hours, last3Hours, last2Days, last3Days, thisMonth, lastMonth, thisw_week, etc. These cycle time are only suitable for day level scheduling that depends on hour level scheduling, month level scheduling that depends on day level scheduling, week level scheduling that depends on day level scheduling, etc. In other words, task dependencies of the same cycle type lack corresponding cycle time
This feature lacks documentation, which can easily lead to confusion among beginners regarding the selection of cycle time. Only by personally reading the source code can we understand the meaning of each cycle time
If possible, I can provide the code and complete the documentation

image

Are you willing to submit a PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateThis issue or pull request already exists

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions