Uploaded image for project: 'Notifications Development'
  1. Notifications Development
  2. ND-68

Migration task may continue running after plugin is disabled and re-enabled

    Details

    • Type: Bug
    • Status: To Do
    • Priority: High
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None
    • Sprint:
      SR Squad 120
    • Story Points:
      5
    • Critical Points:
      1

      Description

      Problem Summary

      The notifications Migration, once started, won't stop unless the plugin is disabled. However, if the Notifications plugin is re-enabled, the job will resume, without any user intervention.

      This can be undesirable for large instances, where the migration may create performance problems.

      If the migration task completes as expected, this isn't a problem, but it is a problem if it runs for a long time and an administrator needs to stop it unexpectedly.

      Potential Workaround

      Manually unregister the migration task using the Script Console by running the following script:

      import com.atlassian.sal.api.component.ComponentLocator
      import com.atlassian.scheduler.SchedulerService
      import com.atlassian.scheduler.config.JobRunnerKey
      
      JobRunnerKey jobRunnerKey = JobRunnerKey.of("migrationTask")
      def schedulerService = ComponentLocator.getComponent(SchedulerService)
      schedulerService.unregisterJobRunner(jobRunnerKey)
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              jcarter Jonny Carter
              Votes:
              3 Vote for this issue
              Watchers:
              9 Start watching this issue

                Dates

                Created:
                Updated: