Uploaded image for project: 'Sakai'
  1. Sakai
  2. SAK-42565

Job Scheduler delays startup by 5 mins if there is an active job

    XMLWordPrintable

    Details

    • 19 status:
      Please Merge
    • Test Plan:
      Hide

      Requires a job that needs to start when sakai starts and can only be verified using the log

      Show
      Requires a job that needs to start when sakai starts and can only be verified using the log

      Description

      When Job Scheduler starts and if there is a job that needs to be run at that time it will delay the entire startup of Sakai by 5 mins.

      Solution is to move the actual delay into a thread so that it doesn't delay the rest of Sakai from starting.

      These log messages show the problem

      27-Sep-2019 10:10:09.586 INFO [main] org.sakaiproject.delegatedaccess.dao.impl.DelegatedAccessSampleDataLoader.init init()
      27-Sep-2019 10:10:10.005 INFO [main] org.sakaiproject.memory.impl.EhcacheMemoryService.makeEhcache Created ehcache (org.sakaiproject.db.BaseDbFlatStorage.SAKAI_USER_PROPERTY) using defaults
      27-Sep-2019 10:10:10.068 INFO [org.sakaiproject.sitestats.impl.StatsUpdateManagerImpl] org.sakaiproject.sitestats.impl.event.FileEventRegistry.loadEventRegistryFile init(): - loading default event registry from: org/sakaiproject/sitestats/config/toolEventsDef.xml. A custom one for adding/removing events can be specified in sakai.properties with the property: toolEventsDefinitionFile@org.sakaiproject.sitestats.api.StatsManager=${sakai.home}/toolEventsdef.xml.
      27-Sep-2019 10:10:10.111 INFO [main] org.sakaiproject.memory.impl.EhcacheMemoryService.makeEhcache Created ehcache (org.sakaiproject.db.BaseDbFlatStorage.SAKAI_REALM_PROPERTY) using defaults
      27-Sep-2019 10:10:10.316 INFO [main] org.sakaiproject.memory.impl.EhcacheMemoryService.makeEhcache Created ehcache (org.sakaiproject.db.BaseDbFlatStorage.SAKAI_SITE_PROPERTY) using defaults
      27-Sep-2019 10:10:10.876 INFO [main] org.sakaiproject.memory.impl.EhcacheMemoryService.makeEhcache Created ehcache (org.sakaiproject.db.BaseDbFlatStorage.SAKAI_SITE_PAGE_PROPERTY) using defaults
      27-Sep-2019 10:11:26.582 INFO [pool-2-thread-1] org.sakaiproject.authz.impl.DbAuthzGroupService.run RefreshAuthzGroupTask.run() refreshed 125 realms in 0.335 seconds, longest realm was !site.template.course at 0.012 seconds
      27-Sep-2019 10:12:26.839 INFO [pool-2-thread-1] org.sakaiproject.authz.impl.DbAuthzGroupService.run RefreshAuthzGroupTask.run() refreshed 101 realms in 0.256 seconds, longest realm was /site/DAC-MUSIC-DEPT3-SUBJ1-201 at 0.004 seconds
      27-Sep-2019 10:13:27.102 INFO [pool-2-thread-1] org.sakaiproject.authz.impl.DbAuthzGroupService.run RefreshAuthzGroupTask.run() refreshed 100 realms in 0.259 seconds, longest realm was /site/DAC-MEDICINE-DEPT1-SUBJ3-251 at 0.007 seconds
      27-Sep-2019 10:14:27.355 INFO [pool-2-thread-1] org.sakaiproject.authz.impl.DbAuthzGroupService.run RefreshAuthzGroupTask.run() refreshed 101 realms in 0.252 seconds, longest realm was /site/DAC-MEDICINE-DEPT3-SUBJ2-176 at 0.004 seconds
      27-Sep-2019 10:15:16.000 INFO [Timer-2] org.sakaiproject.email.impl.BaseDigestService.sendDigests Preparing to send the mail digests for 20190927040000000]20190928040000000
      27-Sep-2019 10:15:27.609 INFO [pool-2-thread-1] org.sakaiproject.authz.impl.DbAuthzGroupService.run RefreshAuthzGroupTask.run() refreshed 97 realms in 0.254 seconds, longest realm was /site/DAC-EDUCATION-DEPT2-SUBJ2-476 at 0.008 seconds
      27-Sep-2019 10:15:38.613 INFO [main] org.sakaiproject.delegatedaccess.jobs.DelegatedAccessSiteHierarchyJob.execute DelegatedAccessSiteHierarchyJob started

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  ern Earle R Nietzel
                  Reporter:
                  ern Earle R Nietzel
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Git Source Code