Closed tom-mckenzie-nuix closed 1 year ago
Nice 👍. Quick comment. We need our own crontype enum, cannot expose the one from cronutils
A test perhaps?
Nice 👍. Quick comment. We need our own crontype enum, cannot expose the one from cronutils
Isn't the cronutils one already exposed via CronDefinitionBuilder.instanceDefinitionFor(CronType)?
A test perhaps?
Added tests for quartz and unix style crons.
Isn't the cronutils one already exposed via CronDefinitionBuilder.instanceDefinitionFor(CronType)?
I would like to keep the underlying cron-library an implementation detail, i.e. classes and packages should not leak into the "api" of db-scheduler.
Basically what I am asking for is a duplication of CronType
into the scheduler packages, and a translation between that and cronutils.
Isn't the cronutils one already exposed via CronDefinitionBuilder.instanceDefinitionFor(CronType)?
I would like to keep the underlying cron-library an implementation detail, i.e. classes and packages should not leak into the "api" of db-scheduler.
Basically what I am asking for is a duplication of
CronType
into the scheduler packages, and a translation between that and cronutils.
Ah, I had missed that CronDefinitionBuilder was part of the other library. The change is in now.
Looking good, thanks 👍
Would it be possible for you to verify that deserializing a
CronSchedule
serialized by the latest released version of db-scheduler works?
This does not work.
Should I make a new class for my changes and deprecate CronSchedule
instead of modifying it?
Hmm, you sure? I thought it would be, after serialVersionId was set to 1 at least
Hmm, you sure? I thought it would be, after serialVersionId was set to 1 at least
Ah, I had been working off version 11.7 which didn't have a hard-coded serialVersionUID. Going from 12.1.0 to my branch does work.
Ok, good! Thanks for testing 👍
🎉 This issue has been resolved in v12.2.0
(Release Notes)
…pe enum
Brief, plain english overview of your changes here
Allow CronSchedule to use any type of cron expression supported by CronType enum
Fixes
(https://github.com/kagkarlsson/db-scheduler/issues/384)
Reminders
mvn spotless:apply
cc @kagkarlsson