apache / apache/dolphinscheduler

[Feature][WorkflowTiming] Supports multiple timing plans for one workflow

Open
#15,151 7 comments 0 reactions 0 assignees View on GitHub
feature help wanted
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 [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar feature requirement.

### Description

Currently, a workflow can only use one scheduled task, so why provide a separate timing management tab for workflow timing. In my opinion, workflow and scheduled planning should have a one-to-many relationship.

![image](https://github.com/apache/dolphinscheduler/assets/33758411/a0e5a6e9-491d-4088-99b1-625ff032f0ef)

As shown in the figure, after turning on scheduled tasks, you can no longer add scheduled tasks, and clicking on scheduled management only jumps to a list of only one scheduled task.

Since there is only one scheduled task management, wouldn’t it be better to directly use the scheduled task as an attribute of the task definition?

### Use case

Due to some special timing designs, one crontab configuration cannot meet timing requirements. We hope to provide multiple crontab timings and multiple start and stop times for a workflow. Now it seems that I can only create multiple identical workflows for this, and I must modify all these identical workflows every time I modify them.

### Related issues

No

### Are you willing to submit a PR?

- [ ] Yes I am willing to submit a PR!

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

Research direction

The issue names no files, tests, or entry points. Start by tracing workflow scheduling and the scheduled-management flow to determine how a workflow currently stores one timing plan; the work is done when one workflow supports multiple cron timings plus multiple start and stop times without duplicated workflow definitions.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.