Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-6030

Unscheduling Cron-Jobs does not work

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: Event 4.0.0
    • Fix Version/s: None
    • Component/s: Commons
    • Labels:
    • Environment:
      AEM-6.2

      Description

      Unscheduling a scheduled (cron-) Job is not being persisted. Therefore old cron jobs reappear after some time. Events are fired multiple times.

      I encountered this bug with AEM-6.2. Cronjobs are unusable this way. I must remove corresponding nodes under /var/eventing/scheduled-jobs to get rid of them.

      Please notice attached simple app with two components. CronScheduler should schedule/unschedule 1 cron job on activation/deactivation. CronProcessor simply consumes the events and logs.

      When manually deactivating the CronScheduler-Component all seems fine in the first place, but after some time old cron-jobs reappear for they have never been removed from the repository.

      To reproduce deactivate/activate the CronScheduler-Component some times and you get multiple instances of the same cron-Job.

        Attachments

        1. crontest.tar
          16 kB
          Henry Krause

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                henry.k Henry Krause
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: