====== Quartz ====== * http://quartz-scheduler.org/ * http://www.quartzdesk.com/ * [[springframework:batch:quartz_job_launcher|Spring Batch Quartz Job Launcher]] * [[java:shedlock|@ShedLock]] ===== 튜토리얼 ===== * [[https://www.baeldung.com/quartz|Introduction to Quartz | Baeldung]] * [[https://www.baeldung.com/spring-quartz-schedule|Scheduling in Spring with Quartz | Baeldung]] ===== Cluster ===== * 여러 서버에서 quartz 로 job scheduling 을 할 경우 클러스터 모드 구성이 가능하다. * 이때는 클러스터링을 위해 DB(JDBC)나 Redis 같은 저장소가 필요하다. ==== clutster / redis ==== * [[https://redis.com/blog/run-quartz-the-java-job-scheduler-on-top-of-redis/|Run Quartz, The Java Job Scheduler, on Top of Redis | Redis]] * [[https://github.com/RedisLabs/redis-quartz|redis-quartz]] driver ===== Job List ===== * [[https://mkyong.com/java/how-to-list-all-jobs-in-the-quartz-scheduler/|How to list all Jobs in the Quartz Scheduler - Mkyong.com]] ===== 수동 실행 manual trigger ===== * https://stackoverflow.com/a/47674546 // Create a new Job JobKey jobKey = JobKey.jobKey("myNewJob", "myJobGroup"); JobDetail job = JobBuilder.newJob(MyJob.class).withIdentity(jobKey).storeDurably().build(); // Register this job to the scheduler scheduler.addJob(job, true); // Immediately fire the Job MyJob.class scheduler.triggerJob(jobKey); ===== 참조 ===== * [[https://flylib.com/books/en/2.65.1/how_clustering_works_in_quartz.html|How Clustering Works in Quartz | Clustering Quartz]] * [[https://medium.com/@Hronom/spring-boot-quartz-scheduler-in-cluster-mode-457f4535104d|Spring Boot + Quartz Scheduler in Cluster mode | by Yevhen Tienkaiev | Medium]] * [[https://github.com/heidiks/spring-boot-quartz-cluster-environment|heidiks/spring-boot-quartz-cluster-environment: Spring Boot integration with Quartz Scheduler in a cluster environment]] * [[https://blog.advenoh.pe.kr/spring/Multi-WAS-%ED%99%98%EA%B2%BD%EC%9D%84-%EC%9C%84%ED%95%9C-Cluster-%ED%99%98%EA%B2%BD%EC%9D%98-Quartz-Job-Scheduler-%EA%B5%AC%ED%98%84/|[Quartz-3] Multi WAS 환경을 위한 Cluster 환경의 Quartz Job Scheduler 구현 - Frank's Blog]] * [[https://github.com/quartz-scheduler/quartz/blob/main/docs/configuration.adoc|quartz/docs/configuration.adoc at main · quartz-scheduler/quartz]]