Proper error message when a feed is locked

Created on 3 June 2025, 21 days ago

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

Feature request
Status

Active

Version

3.0

Component

User interface

Created by

🇧🇪Belgium yorickdv

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

Comments & Activities

  • Issue created by @yorickdv
  • First commit to issue fork.
  • Can you please mention how to reproduce the 'feed lock' situation

  • 🇳🇱Netherlands megachriz

    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.

Production build 0.71.5 2024