Quartz接下来的火时间让人类在MySQL中可读

时间:2016-11-02 04:35:11

标签: mysql sql quartz-scheduler

我坚持使用MySQL的石英工作。

NEXT_FIRE_TIMEPREV_FIRE_TIME很难确定时间。

有人可以提供MySQL选择语法以便于跟踪时间吗?

非常感谢!

1 个答案:

答案 0 :(得分:1)

select qt.job_group, qt.job_name, FROM_UNIXTIME(qt.start_time / 1000) AS startTime, FROM_UNIXTIME(qt.prev_fire_time / 1000) AS prevFireTime, FROM_UNIXTIME(qt.next_fire_time / 1000) AS nextFireTime, SEC_TO_TIME((qt.next_fire_time - qt.prev_fire_time) / 1000) AS diff, (qst.REPEAT_INTERVAL / 1000) AS repeatIntervalInSecs, qst.TIMES_TRIGGERED AS timesTriggered from QRTZ_TRIGGERS AS qt LEFT JOIN QRTZ_SIMPLE_TRIGGERS AS qst ON qt.TRIGGER_NAME = qst.TRIGGER_NAME;