问题
What is the best way to disable a job in the JDBCJobStore without deleting it's job or trigger records and without wiping the cron expression?
回答1:
Use scheduler.pauseJob() or scheduler.pauseTrigger().
Alternatively you can use the following SQL script:
UPDATE QRTZ_TRIGGERS SET TRIGGER_STATE = "PAUSED"
回答2:
Use the pauseJob
or pauseJobGroup
methods of JobStore
.
来源:https://stackoverflow.com/questions/4430710/how-can-i-disable-jobs-in-the-quartz-jdbcjobstore