Active
Project:
Feeds
Version:
8.x-3.0
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
3 Jun 2025 at 09:53 UTC
Updated:
7 Jun 2025 at 09:29 UTC
Jump to comment: Most recent
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
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
Comment #3
techmantejas commentedCan you please mention how to reproduce the 'feed lock' situation
Comment #4
megachrizA 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':
'1' is the ID of the feed to lock.