quartz-scheduler / quartz

Code for Quartz Scheduler
http://www.quartz-scheduler.org
Apache License 2.0
6.29k stars 1.94k forks source link

With Java 21, should have support for virtual threads - with virtual threadpool support #1090

Open nmondal opened 10 months ago

nmondal commented 10 months ago

Because most of the cron operations are are doing is massively IO centric. I will raise a PR soon to do the same. Please let me know if this is going to be useful or not. It can be done with - DirectSchedulerFactory anyways by switching the threadpool:

DirectSchedulerFactory.CreateScheduler Method (IThreadPool, IJobStore)

with RAMJobStore

melloware commented 10 months ago

@nmondal please submit the PR.

nmondal commented 10 months ago

Here is the PR. https://github.com/quartz-scheduler/quartz/pull/1093

Some tests fail while running in JDK-21, but I have ensured that the portion of the added code is tested fully and runs under any JRE.

ravi-inflection commented 9 months ago

@melloware Can you please look into the PR.