Replace post_update hook with deploy for timeout update

Created on 5 August 2025, about 1 month ago

Problem/Motivation

content_lock_post_update_uninstall_content_lock_timeout is intended to deprecate content_lock_timeout. The problem is it won't work if sites use "drush deploy" for CI.:
https://www.drush.org/12.x/deploycommand/

drush updatedb --no-cache-clear
drush cache:rebuild
drush config:import
drush cache:rebuild
drush deploy:hook

The post update is run at the first step then gets reverted back by drush cim.

Proposed resolution

Place the logic in HOOK_deploy_NAME() instead of post_update hook
Though deploy hook is from drush not core, it's unlikely any Drupal site does not use drush, and it'd trigger error if so that is better than an undetectable failure.

🐛 Bug report
Status

Active

Version

3.0

Component

Code

Created by

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

Comments & Activities

Production build 0.71.5 2024