We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No description provided.
The text was updated successfully, but these errors were encountered:
package com.cyao.schedule.jobstore; import net.joelinn.quartz.jobstore.RedisJobStoreSchema; import org.quartz.JobPersistenceException; import org.slf4j.Logger; import org.slf4j.LoggerFactory; /** * 重写RedisJobStore的shutdown方法保证项目关闭时从redis清除当前instanceId * * @author Cyao */ public class RedisJobStore extends net.joelinn.quartz.jobstore.RedisJobStore { private Logger logger = LoggerFactory.getLogger(getClass()); @Override public void shutdown() { logger.info("RedisJobStore_$_{} shutting down.", instanceId); final RedisJobStoreSchema redisSchema = new RedisJobStoreSchema(keyPrefix, keyDelimiter); try { super.doWithLock(jedis -> jedis.hdel(redisSchema.lastInstanceActiveTime(), instanceId)); } catch (JobPersistenceException e) { e.printStackTrace(); } super.shutdown(); logger.info("RedisJobStore_$_{} shutdown complete.", instanceId); } }
Sorry, something went wrong.
No branches or pull requests
No description provided.
The text was updated successfully, but these errors were encountered: