Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add dolphinscheduler-scheduler module #10360

Merged
merged 5 commits into from
Jun 4, 2022

Conversation

ruanwenjun
Copy link
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
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
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
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
@@ -1254,5 +1265,6 @@
<module>dolphinscheduler-log-server</module>
<module>dolphinscheduler-tools</module>
<module>dolphinscheduler-ui</module>
<module>dolphinscheduler-scheduler</module>
Copy link
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

</exclusion>
</exclusions>
<groupId>com.cronutils</groupId>
<artifactId>cron-utils</artifactId>
</dependency>
<dependency>
<groupId>org.quartz-scheduler</groupId>
Copy link
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
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
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?

kezhenxu94
kezhenxu94 previously approved these changes Jun 4, 2022
@sonarcloud
Copy link

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