-
Notifications
You must be signed in to change notification settings - Fork 114
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
Adds create, update, delete of a schedule and a job scheduling at once #81
Conversation
Manages both job and schedule references removal.
These methods are intended to provide simple JobSchedule operations with consistent naming. Job and schedule concepts are managed all at once.
Warning: Don't know if version name change is wise. Use to publish-local artifact to test integration in other projects.
Hi @refond , I managed to get around to reviewing this. Overall, it looks good. Can you add a section to the README.md explaining how to use these functions so that newcomers to the library know to use them? |
Hi @enragedginger, great to read it looks good to you. Of course I will add section to the README.md with explanations, examples. I just won't I have time to do it before the second week of January. |
Hi @enragedginger, finally added a section to the README.md file explaining how to use these new functions. |
I would be very interested in this functionality, any changes to get a new release in the next days? |
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 Thanks for putting this together!
@qux42 This has been published as build |
enragedginger#81) * Adds new unscheduleJob method. Manages both job and schedule references removal. * Add public create, update, delete methods on JobSchedule. These methods are intended to provide simple JobSchedule operations with consistent naming. Job and schedule concepts are managed all at once. * Removed unnecessary comments. Warning: Don't know if version name change is wise. Use to publish-local artifact to test integration in other projects. * Fix wrong @return documentation. * WIP - updateJobSchedule and deleteJobSchedule tests fails. * Fix test cron expressions to match expected result. All tests pass! * Typo * Add test for non existing job schedule deletion. * Remove test artifact version modification. * Added usage Dynamic create, update, delete `JobSchedule` operations sub-section.
This pull request includes the following new public methods to QuartzSchedulerExtension`:
createJobSchedule
updateJobSchedule
deleteJobSchedule
akaunscheduleJob
They mostly build upon existing methods in order to manage a schedule and its associated job in a single call.
The ability to perform the removal of an existing schedule together with job cancellation is the only new behaviour added to the QuartzSchedulerExtension by the mean of
unscheduleJob
.createJobSchedule
builds upon existingcreateSchedule
andschedule
methods.updateJobSchedule
is a synonym to existingrescheduleJob
method.deleteJobSchedule
is a synonym to the newunscheduleJob
method.unscheduleJob
builds upon existingcancelJob
and privateremoveSchedule
methods.