如何禁用Quartz JDBCJobStore中的作业? [英] How can I disable jobs in the Quartz JDBCJobStore?

查看:373
本文介绍了如何禁用Quartz JDBCJobStore中的作业?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在不删除作业或触发记录且不擦除cron表达式的情况下,禁用JDBCJobStore中的作业的最佳方法是什么?

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?

推荐答案

使用 scheduler.pauseJob() scheduler.pauseTrigger()

或者你可以使用以下SQL脚本:

Alternatively you can use the following SQL script:

UPDATE QRTZ_TRIGGERS SET TRIGGER_STATE = "PAUSED"

这篇关于如何禁用Quartz JDBCJobStore中的作业?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆