Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-74127

When scheduling a job, should not override the old one if exists

    Details

      Description

      This is found by analyzing code, can not be tested manually.

      In old logic, when we schedule a job on Quartz, we do :

      synchronized (this) {
      scheduler.deleteJob(trigger.getJobKey());
      scheduler.scheduleJob(jobDetail, trigger);
      }
      

      We should not do this, since we already provide a way to update a job, what we should do is , do not override old ones, and do some logging if job with same name exists

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  2 years, 12 weeks, 4 days ago

                  Packages

                  Version Package
                  7.0.0 DXP FP28
                  7.0.X EE
                  7.0.4 CE GA5
                  7.1.X
                  Master