Uploaded image for project: 'PUBLIC - Liferay Commerce'
  1. PUBLIC - Liferay Commerce
  2. COMMERCE-5994

Unable to update crone expression on active dispatch trigger

    Details

      Description

      1) create dispatch trigger
      2) click on entry
      3) click on Dispatch Trigger Tab
      4) check active and set CRON * */2 * ? * * *
      5) click Save
      6) update CRON to * */5 * ? * * *
      Expected:
      entry is updated
      Actually:

      2021-03-09 14:53:04.187 WARN  [liferay/scheduler_engine-2][QuartzSchedulerEngine:848] Scheduler job DISPATCH_GROUP_0051532.DISPATCH_JOB_0051532 already exists
      org.quartz.ObjectAlreadyExistsException: Unable to store Job : 'DISPATCH_GROUP_0051532.DISPATCH_JOB_0051532', because one already exists with this identification.
      	at org.quartz.impl.jdbcjobstore.JobStoreSupport.storeJob(JobStoreSupport.java:1097)
      	at org.quartz.impl.jdbcjobstore.JobStoreSupport$2.execute(JobStoreSupport.java:1051)
      	at org.quartz.impl.jdbcjobstore.JobStoreSupport$45.execute(JobStoreSupport.java:3726)
      	at org.quartz.impl.jdbcjobstore.JobStoreSupport.executeInNonManagedTXLock(JobStoreSupport.java:3798)
      	at org.quartz.impl.jdbcjobstore.JobStoreTX.executeInLock(JobStoreTX.java:93)
      	at org.quartz.impl.jdbcjobstore.JobStoreSupport.executeInLock(JobStoreSupport.java:3722)
      	at org.quartz.impl.jdbcjobstore.JobStoreSupport.storeJobAndTrigger(JobStoreSupport.java:1047)
      	at org.quartz.core.QuartzScheduler.scheduleJob(QuartzScheduler.java:840)
      	at org.quartz.impl.StdScheduler.scheduleJob(StdScheduler.java:250)
      	at com.liferay.portal.scheduler.quartz.internal.QuartzSchedulerEngine.schedule(QuartzSchedulerEngine.java:844)
      	at com.liferay.portal.scheduler.quartz.internal.QuartzSchedulerEngine.schedule(QuartzSchedulerEngine.java:370)
      	at sun.reflect.GeneratedMethodAccessor221.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at com.liferay.portal.kernel.messaging.proxy.ProxyRequest.execute(ProxyRequest.java:82)
      	at com.liferay.portal.kernel.messaging.proxy.ProxyMessageListener.receive(ProxyMessageListener.java:58)
      	at com.liferay.portal.kernel.messaging.InvokerMessageListener.receive(InvokerMessageListener.java:74)
      	at com.liferay.portal.messaging.internal.ParallelDestination$1.run(ParallelDestination.java:56)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      	at java.lang.Thread.run(Thread.java:748)
      

        Attachments

          Activity

            People

            Assignee:
            brian.chan Brian Chan
            Reporter:
            igor.beslic Igor Beslic
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Packages

                Version Package
                Master