Skip to content

Add dolphinscheduler-scheduler module#10360

Merged
ruanwenjun merged 5 commits intoapache:devfrom
ruanwenjun:dev_wenjun_addScheduler
Jun 4, 2022
Merged

Add dolphinscheduler-scheduler module#10360
ruanwenjun merged 5 commits intoapache:devfrom
ruanwenjun:dev_wenjun_addScheduler

Conversation

@ruanwenjun
Copy link
Copy Markdown
Member

Purpose of the pull request

Split the quartz from service module.

Brief change log

  • Add dolphinscheduler-scheduler, dolphinscheduler-scheduler-api, dolphinscheduler-scheduler-quartz modules.
  • Add the scheduler interface SchedulerApi, contains addOrInsert/delete method to operate schedule task.

@ruanwenjun ruanwenjun added the improvement make more easy to user or prompt friendly label Jun 4, 2022
Copy link
Copy Markdown
Member

@kezhenxu94 kezhenxu94 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some files are missing license headers

<artifactId>dolphinscheduler</artifactId>
<groupId>org.apache.dolphinscheduler</groupId>
<version>dev-SNAPSHOT</version>
</parent>
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need this? This module should be added only in starter, like api, master, worker, alert

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is mistake, the parent should be dolphinscheduler-scheduler-plugin

pom.xml Outdated
<module>dolphinscheduler-log-server</module>
<module>dolphinscheduler-tools</module>
<module>dolphinscheduler-ui</module>
<module>dolphinscheduler-scheduler</module>
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we rename to the same formats as other plugins? Like dolphinscheduler-scheduler-plugin-quartz

<artifactId>cron-utils</artifactId>
</dependency>
<dependency>
<groupId>org.quartz-scheduler</groupId>
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey I don't have my computer at hands, do we still depend on this module in -service module?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right now, we have some class rely on the quartz module to do some cron parsing. We need to refactor the CronUtils, then we can remove the org.quartz-scheduler module. I add a todo in CronUtils, it will take some to refactor this util.

/**
* This is the interface for scheduler, contains methods to operate schedule task.
*/
public interface SchedulerApi {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about extends AutoCloseable?

@ruanwenjun ruanwenjun force-pushed the dev_wenjun_addScheduler branch from 685a57f to 42d41fa Compare June 4, 2022 06:50
kezhenxu94
kezhenxu94 previously approved these changes Jun 4, 2022
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud bot commented Jun 4, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 29 Code Smells

35.5% 35.5% Coverage
0.0% 0.0% Duplication

Copy link
Copy Markdown
Member

@SbloodyS SbloodyS left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

@ruanwenjun ruanwenjun merged commit 2d3be6b into apache:dev Jun 4, 2022
@ruanwenjun ruanwenjun deleted the dev_wenjun_addScheduler branch June 4, 2022 08:39
@davidzollo
Copy link
Copy Markdown
Contributor

good job

Tianqi-Dotes pushed a commit to Tianqi-Dotes/dolphinscheduler that referenced this pull request Jun 16, 2022
* Add dolphinscheduler-scheduler module
Tianqi-Dotes added a commit to Tianqi-Dotes/dolphinscheduler that referenced this pull request Jun 16, 2022
* Add dolphinscheduler-scheduler module
* delete unused class in SchedulerServiceTest
@devosend devosend added this to the 3.1.0-alpha milestone Jun 18, 2022
ruanwenjun added a commit to ruanwenjun/dolphinscheduler that referenced this pull request Jun 21, 2022
* Add dolphinscheduler-scheduler module

Co-authored-by: Wenjun Ruan <wenjun@apache.org>
ruanwenjun added a commit to ruanwenjun/dolphinscheduler that referenced this pull request Jun 21, 2022
* Add dolphinscheduler-scheduler module (apache#10360)

* Add dolphinscheduler-scheduler module

* Add dolphinscheduler-scheduler module (apache#10360)

* Add dolphinscheduler-scheduler module
* delete unused class in SchedulerServiceTest

Co-authored-by: Wenjun Ruan <wenjun@apache.org>
ITBOX-ITBOY pushed a commit to ITBOX-ITBOY/dolphinscheduler that referenced this pull request Jul 8, 2022
* Add dolphinscheduler-scheduler module
@ruanwenjun ruanwenjun modified the milestones: 3.1.0-alpha, 3.0.0-release Jul 14, 2022
@zhongjiajie zhongjiajie modified the milestones: 3.0.0-release, 3.1.0-alpha Aug 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

improvement make more easy to user or prompt friendly

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants