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

Fix serialization issues for rescheduling tasks. #115

Conversation

sergey-tsarevich
Copy link

Fix exception when it trying to save task with schedule then Exception is throwing:
com.fasterxml.jackson.databind.exc.InvalidDefinitionException: Java 8 date/time type java.time.ZoneRegion not supported by default: add Module "com.fasterxml.jackson.datatype:jackson-datatype-jsr310" to enable handling (through reference chain: com.github.bekk.exampleapp.model.TaskScheduleAndNoData["schedule"]->com.github.kagkarlsson.scheduler.task.schedule.CronSchedule["zoneId"])] with root cause.
Please see DynamicRecurringSchedulingTest.java

@geirsagberg
Copy link
Collaborator

Hey, I ran into a similar issue when having an Instant field in a task data. But I don't understand why the task data is serialized and deserialized, so I am making a simpler PR that simply removes the serialization

@geirsagberg
Copy link
Collaborator

I brought your tests into #117 , seems to work, so closing this one.

@geirsagberg geirsagberg closed this Jul 9, 2024
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.

2 participants