Come out of maintenance mode before doing translations during a deploy

Created on 25 March 2025, 11 days ago

Problem/Motivation

Translation updates during a deploy can take a long time. There is no need to be in maintenance mode while they are taking place so we should optionally come out of it before doing them.

Steps to reproduce

Run a deploy with translation updates

Proposed resolution

Add an option to deploy so we can come out of maintenance mode before doing translations.

Remaining tasks

User interface changes

tBD

API changes

tBD

Data model changes

None

πŸ“Œ Task
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom alexpott πŸ‡ͺπŸ‡ΊπŸŒ

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @alexpott
  • πŸ‡¬πŸ‡§United Kingdom alexpott πŸ‡ͺπŸ‡ΊπŸŒ

    Hmmm this is not possible because the locale part happens before config import... from the docs

      /**
       * Ensures that translations are updated as part of a drush:deploy command.
       *
       * Translations are imported prior to configuration to ensure that the
       * configuration is the final say as it is very confusing when configuration
       * changes after running an import.
       *
       * @hook post-command updatedb
       */
      public function postUpdateDbHook(int $result): void {
    

    And I think we need to be in maintenance mode during config import.... therefore closing this as won't fix. I think the real fix is to make the locale code much faster...

Production build 0.71.5 2024