Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-24540

Add way to customize Quartz Jobs and Triggers

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 10.2
    • Component/s: Scheduler
    • Release Notes Description:
      Hide

      Customisable Job

      – It is now possible to specify what Job should be created when using the scheduler thanks to a new attribute "jobFactoryClass":
      ```
      <schedule id="testSchedulerSingleExecution"
      jobFactoryClass="org.nuxeo.ecm.core.scheduler.SingleExecutionEventJobFactory">
      <event>testSchedulerSingleExecution</event>
      <cronExpression>* * * * * ?</cronExpression>
      </schedule>
      ```

      Show
      Customisable Job – It is now possible to specify what Job should be created when using the scheduler thanks to a new attribute "jobFactoryClass": ``` <schedule id="testSchedulerSingleExecution" jobFactoryClass="org.nuxeo.ecm.core.scheduler.SingleExecutionEventJobFactory"> <event>testSchedulerSingleExecution</event> <cronExpression>* * * * * ?</cronExpression> </schedule> ```

      Description

      It is currently not possible to customize the Quartz job and trigger created by the SchedulerService, like adding @DisallowConcurrentExecution to the job or changing the misfire behavior.

      A PR has been proposed: https://github.com/nuxeo/nuxeo/pull/1800

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 2 hours
                2h