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

Unexpected behaviours with cron expression #10694

Closed
pqab opened this issue Apr 8, 2024 · 2 comments
Closed

Unexpected behaviours with cron expression #10694

pqab opened this issue Apr 8, 2024 · 2 comments

Comments

@pqab
Copy link

pqab commented Apr 8, 2024

Expected Behavior

We have a task scheduler and it shouldn't run between 00:00-05:00am JST

Actual Behaviour

00:00-05:00am JST still triggering the job, it was working fine before we upgrade from micronaut version 3.4.4 to micronaut platform version 4.3.3

Steps To Reproduce

Create the task scheduler like below

@Named(TaskExecutors.SCHEDULED)
TaskScheduler taskScheduler;

taskScheduler.schedule("0 */15 0-14,20-23 * * ?", "Asia/Tokyo" () -> { ... })

Environment Information

  • JDK Version: 21
  • Container: bellsoft/liberica-openjdk-alpine:21.0.2-14

Example Application

No response

Version

4.3.3

@pqab
Copy link
Author

pqab commented Apr 8, 2024

looks like the system zone was UTC, and now is JST

@pqab
Copy link
Author

pqab commented Apr 9, 2024

I think it already fixed in
#8911

it was some debugger issues jumped to different method

@pqab pqab closed this as not planned Won't fix, can't repro, duplicate, stale Apr 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

No branches or pull requests

1 participant