-
Notifications
You must be signed in to change notification settings - Fork 4.5k
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
Directly use Quartz replase api to bootstrap a schedule #15781
Directly use Quartz replase api to bootstrap a schedule #15781
Conversation
1f6f6b1
to
681aec2
Compare
It's ok to remove lock when build job details and schedule? |
1437979
to
e43c7dc
Compare
...rtz/src/main/java/org/apache/dolphinscheduler/scheduler/quartz/QuartzCornTriggerBuilder.java
Fixed
Show fixed
Hide fixed
e43c7dc
to
bcfd0da
Compare
We don't need to use lock here, and quartz will use db lock when dealing with job/trigger. |
e9e8d49
to
713add8
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## dev #15781 +/- ##
============================================
- Coverage 39.19% 39.11% -0.08%
- Complexity 4876 4888 +12
============================================
Files 1317 1326 +9
Lines 45039 45206 +167
Branches 4808 4818 +10
============================================
+ Hits 17652 17684 +32
- Misses 25501 25635 +134
- Partials 1886 1887 +1 ☔ View full report in Codecov by Sentry. |
713add8
to
5c0a1a8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Quality Gate failedFailed conditions |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
Purpose of the pull request
Optimize the scheduler code in quartz plugin, use quartz replace API to insert/update trigger and job.
Brief change log
Verify this pull request
This pull request is code cleanup without any test coverage.
(or)
This pull request is already covered by existing tests, such as (please describe tests).
(or)
This change added tests and can be verified as follows:
(or)
If your pull request contain incompatible change, you should also add it to
docs/docs/en/guide/upgrede/incompatible.md