Problem/Motivation

#3163002: Make late runtime processor compatible with drush made the late runtime processor compatible with Drush. This means that the purge queue will be checked when running arbitrary Drush commands. This lead to some arguments that this was not expected behavior when using CLI commands, the Purge module already has CLI commands for processing and the Late Runtime Processor should only handle web requests.

It was argued that enabling processing for CLI commands should have been a configuration option.

Steps to reproduce

None.

Proposed resolution

Now processing the purge on CLI commands is the default so instead it should be a configuration option to disable processing for CLI commands.

Remaining tasks

User interface changes

- Add a configuration form for the Late Runtime Processor with a checkbox for disabling it on CLI commands.

API changes

None.

Data model changes

None.

Issue fork purge-3462078

Command icon 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

kasperg created an issue. See original summary.

kasperg changed the visibility of the branch 3462078-disable-late-runtime to hidden.

kasperg’s picture

Status: Active » Needs review

I have added a merge request with a first stab at implementing this.

achap’s picture

Thanks for the patch @kasperg. I tested locally running both CLI and web requests and it works as expected.

ajits made their first commit to this issue’s fork.

ajits’s picture

Title: Disable late runtime processor for CLI commands » Make late runtime processor configurable for CLI commands

Updated title and pushed a commit to add the schema and default setting.

ajits’s picture

Status: Needs review » Reviewed & tested by the community

I tested this and it works as expected. The default disable being FALSE should help with backwards compatibility.