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

Adds create, update, delete of a schedule and a job scheduling at once #81

Merged
merged 10 commits into from
Feb 8, 2019

Conversation

refond
Copy link
Contributor

@refond refond commented Dec 17, 2018

This pull request includes the following new public methods to QuartzSchedulerExtension`:

  • createJobSchedule
  • updateJobSchedule
  • deleteJobSchedule aka unscheduleJob

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 existing createSchedule and schedule methods.
updateJobSchedule is a synonym to existing rescheduleJob method.
deleteJobSchedule is a synonym to the new unscheduleJob method.
unscheduleJob builds upon existing cancelJob and private removeSchedule methods.

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.
@enragedginger
Copy link
Owner

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?

@refond
Copy link
Contributor Author

refond commented Dec 31, 2018

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.

@refond
Copy link
Contributor Author

refond commented Feb 5, 2019

Hi @enragedginger, finally added a section to the README.md file explaining how to use these new functions.

@qux42
Copy link

qux42 commented Feb 8, 2019

I would be very interested in this functionality, any changes to get a new release in the next days?

Copy link
Owner

@enragedginger enragedginger left a 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!

@enragedginger enragedginger merged commit 7d915d0 into enragedginger:master Feb 8, 2019
@enragedginger
Copy link
Owner

@qux42 This has been published as build 1.8.0-akka-2.5.x and should be available in a few hours.

kvma pushed a commit to kvma/akka-quartz-scheduler that referenced this pull request Sep 16, 2019
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants