• elastic job will never fire


    1. 描述

    2018-08-20 18:11:01.912 [Thread-8] INFO  org.quartz.impl.StdSchedulerFactory - Using default implementation for ThreadExecutor
    2018-08-20 18:11:01.912 [Thread-8] INFO  o.quartz.core.SchedulerSignalerImpl - Initialized Scheduler Signaller of type: class org.quartz.core.SchedulerSignalerImpl
    2018-08-20 18:11:01.913 [Thread-8] INFO  org.quartz.core.QuartzScheduler - Quartz Scheduler v.2.2.1 created.
    2018-08-20 18:11:01.913 [Thread-8] INFO  c.d.d.j.l.i.s.JobShutdownHookPlugin - Registering Quartz shutdown hook.
    2018-08-20 18:11:01.913 [Thread-8] INFO  org.quartz.simpl.RAMJobStore - RAMJobStore initialized.
    2018-08-20 18:11:01.913 [Thread-8] INFO  org.quartz.core.QuartzScheduler - Scheduler meta-data: Quartz Scheduler (v2.2.1) '914f80a5-33f4-4298-82de-bc84ebeba1d1-2145' with instanceId 'NON_CLUSTERED'
      Scheduler class: 'org.quartz.core.QuartzScheduler' - running locally.
      NOT STARTED.
      Currently in standby mode.
      Number of jobs executed: 0
      Using thread pool 'org.quartz.simpl.SimpleThreadPool' - with 1 threads.
      Using job-store 'org.quartz.simpl.RAMJobStore' - which does not support persistence. and is not clustered.

    2018-08-20 18:11:01.913 [Thread-8] INFO  org.quartz.impl.StdSchedulerFactory - Quartz scheduler '914f80a5-33f4-4298-82de-bc84ebeba1d1-2145' initialized from an externally provided properties instance.
    2018-08-20 18:11:01.913 [Thread-8] INFO  org.quartz.impl.StdSchedulerFactory - Quartz scheduler version: 2.2.1
    Exception in thread "Thread-8" com.dangdang.ddframe.job.exception.JobSystemException: org.quartz.SchedulerException: Based on configured schedule, the given trigger 'DEFAULT.914f80a5-33f4-4298-82de-bc84ebeba1d1-2145' will never fire.
        at com.dangdang.ddframe.job.lite.internal.schedule.JobScheduleController.scheduleJob(JobScheduleController.java:57)
        at com.dangdang.ddframe.job.lite.api.JobScheduler.init(JobScheduler.java:111)
        at com.zhuanche.countOrderService.impl.CountOrderServiceImpl.createElasticJob(CountOrderServiceImpl.java:303)
        at com.zhuanche.countOrderService.impl.CountOrderServiceImpl$1.run(CountOrderServiceImpl.java:279)
        at java.lang.Thread.run(Thread.java:745)
    Caused by: org.quartz.SchedulerException: Based on configured schedule, the given trigger 'DEFAULT.914f80a5-33f4-4298-82de-bc84ebeba1d1-2145' will never fire.
        at org.quartz.core.QuartzScheduler.scheduleJob(QuartzScheduler.java:882)
        at org.quartz.impl.StdScheduler.scheduleJob(StdScheduler.java:249)
        at com.dangdang.ddframe.job.lite.internal.schedule.JobScheduleController.scheduleJob(JobScheduleController.java:53)
        ... 4 more

    2. 解决

    创建的时间小于当前时间 永远不会被执行 故不会执行。

    实际应该不允许生成这种job,给出友好提示;

    或者配完了这个再控制台改 有点乱!

  • 相关阅读:
    生成新的密钥
    django 静态文件
    django 外键操作
    (fields.E130) DecimalFields must define a 'decimal_places' attribute.
    Django模型的Field Types总结
    Django 数据模型的字段列表整理
    需要学习的东西
    最全面的 MySQL 索引详解
    mysql 递归查询
    项目里面常用方法
  • 原文地址:https://www.cnblogs.com/rocky-fang/p/9507240.html
Copyright © 2020-2023  润新知