Skip to content

[update:entities] does not respect current state of maintenance mode #3943

@mdlutz24

Description

@mdlutz24

Problem/Motivation

The update:entities command is part of a number of commands used as part of a normal production deployment process. Often it is desirable to place the site into maintenance mode prior to executing this chain of commands and leave it there until the chain is complete and the site integrity is verified. The update:entities command takes the site out of maintenance mode after it completes running regardless of whether the site was in maintenance mode when it was executed.

How to reproduce

Place a site into maintenance mode, and execute "update:entities". Verify that the site is no longer in maintenance mode.

Solution

The update:execute command saves the maintenance mode state prior to executing and restores it after. It is desirable for the update:entities command to replicate this behavior.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions