Display an error message (not just log) when a feed is locked. This way admins will know something is wrong without having to look in the logs.

Nice To Have: make it an opt-in/opt-out option

Issue fork feeds-3528099

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

yorickdv created an issue.

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

techmantejas’s picture

Can you please mention how to reproduce the 'feed lock' situation

megachriz’s picture

A feed gets in a locked state as soon as an import for it gets started. It gets unlocked again when the import successfully finishes. When an import ends abruptly (for example because of a PHP fatal error), the feed remains locked.

The easiest way to get a feed in a locked state (and have it be in that state for a bit longer) is to go to a feed, click on "Import in background" (/feed/x/schedule-import) and click the button "Schedule import". This will lock the feed and create a queue task. The queue task will be performed on cron runs. So long that you don't cron, the feed remains locked (unless you unlock it manually).

You can also manually lock a feed using the drush command 'feeds:lock':

drush feeds:lock 1

'1' is the ID of the feed to lock.