Uploaded image for project: 'Scheduler'
  1. Scheduler
  2. MGNLSCH-64

Scheduler discards all programatically added jobs on restart

    XMLWordPrintable

    Details

    • Release notes required:
      Yes
    • Epic Link:
    • Sprint:
      6.2 Ramp-up 17, 6.2 Ramp-up 18
    • Story Points:
      8
    • Magnolia Release:
      6.2

      Description

      Steps to reproduce:

      • add scheduler job by code
        import info.magnolia.module.scheduler.JobDefinition;
        import info.magnolia.module.scheduler.SchedulerModule;
        import info.magnolia.objectfactory.Components;
        import info.magnolia.module.ModuleRegistry;
        
        ModuleRegistry mod = Components.getComponent(ModuleRegistry.class);
        SchedulerModule sch = mod.getModuleInstance("scheduler");
        JobDefinition j = new JobDefinition("test", "default", "activate", "0 0/1 * 1/1 * ? *", null);
        sch.addJob(j);
        
      • job is registered
      • change the scheduler module configuration
      • module is restarted and N2B mechanism initializes all the jobs defined in JCR
      • which wipes out all the jobs registered by the code

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              mgeljic Mikaël Geljić
              Reporter:
              ochytil Ondrej Chytil
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Date of First Response: