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

Scheduler discards all programatically added jobs on restart

XMLWordPrintable

    • Yes
    • 6.2 Ramp-up 17, 6.2 Ramp-up 18
    • 8

      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

        Acceptance criteria

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

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD