Parcourir la Source

修复定时任务不支持mssql

Mark 7 ans auparavant
Parent
commit
7ff96ba23c

+ 1 - 0
src/main/java/io/renren/modules/job/config/ScheduleConfig.java

54
54
55
        prop.put("org.quartz.jobStore.misfireThreshold", "12000");
55
        prop.put("org.quartz.jobStore.misfireThreshold", "12000");
56
        prop.put("org.quartz.jobStore.tablePrefix", "QRTZ_");
56
        prop.put("org.quartz.jobStore.tablePrefix", "QRTZ_");
57
        prop.put("org.quartz.jobStore.selectWithLockSQL", "SELECT * FROM {0}LOCKS UPDLOCK WHERE LOCK_NAME = ?");
57
        factory.setQuartzProperties(prop);
58
        factory.setQuartzProperties(prop);
58
59
59
        factory.setSchedulerName("RenrenScheduler");
60
        factory.setSchedulerName("RenrenScheduler");