Skip to content

gabrielSpassos/spring-quartz-mysql-redis-poc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spring Quartz Mysql Redis Poc

This poc is about getting some status from a cache, and a scheduler changes this cache based at some relational database.

Other point is that running more than one instance of the project only one instance should do the schedule job.

Usage

Change schedule

Unfortunately the way to change cron is update at database 😞

UPDATE QRTZ_CRON_TRIGGERS
SET CRON_EXPRESSION = '0 0/5 * 1/1 * ? *'
WHERE TRIGGER_NAME = 'updateBankStatusCacheTrigger';

Created endpoint to do this. But quartz don't changes in real time 😞 . Only after the job is executed the new cron expression is used.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages