Problem/Motivation
Usually, Starshot is installed very quickly. For some reason, the installation now takes much longer, just short of three minutes. It looks like the installation of each modules takes about 7 seconds.
Perhaps there is a setting in Automatic Updates which can be added in Starshot to not check for status, assuming this is the problem?
Originally reported in Installation stalls for a minute, or more #157 in Starshot Github repo.
Steps to reproduce
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
Issue fork automatic_updates-3465155
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
catchautomatic_updates_modules_installed() should at least check the $is_syncing parameter and not show when that's TRUE, although I can't remember off the top of my head whether that gets set during site install.
It's not clear to me exactly why these need to be run immediately and can't just be shown on the status report though, or whether they couldn't be moved to a submit handler on the module install form (or even whatever page that redirects to) rather than also being done during site install, drush etc.
Comment #3
phenaproxima@tedbow and I discussed it and although we're open to other options, the thing we should do in the short term to stop the bleeding in the Starshot prototype is not run the status checks if Drupal is in the middle of being installed.
Comment #5
catchDouble checked the installer and $is_syncing is explicitly set to false there, so wouldn't help by itself and we'd need the separate installer check anyway.
I think this should check both tbh - i.e. it shouldn't be doing this during a config import either, the admin has already seen the message when the module was installed on local, or at the very least won't see it during a site deployment.
Comment #6
phenaproximaI concur. I added a check for config sync, and test coverage for both scenarios.
Also tagging this as critical since it causes a serious performance problem.
Comment #7
phenaproximaComment #8
tedbowLooks good!
Comment #9
phenaproximaComment #10
tedbowComment #11
phenaproximaNice idea; done. I'm restoring RTBC here on the assumption that tests will pass.
Comment #13
phenaproxima