Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi all,
On a site that imports and updates nodes, the import process that is triggered by cron tends to fail sometimes. The import task remains locked until I manually unlock it. This requires me to log into the site every day and see if there's anything stuck and if so, unlock it and manually do an import.
I think it would be a lot easier if locked processes are unlocked automatically so that on the next cron, the import is attempted again. Is there a way to automatically kill zombie imports and unlock the feed importer?
Comments
Comment #1
AlfTheCat CreditAttribution: AlfTheCat commentedAnyone have any guidance on this? I'm now having this issue every day. I've never had this problem with feeds before. Taks is stuck at xx% and I have to unlock it and manually run the import (which always works fine).
Comment #2
Lissy CreditAttribution: Lissy commentedI'am also looking for a solution how to programmatically unlock the importer in cron batch.
Comment #3
AlfTheCat CreditAttribution: AlfTheCat commentedHi Lissy,
Check out this thread I started in the Ultimate Cron issue queue. I'm short on time so I haven't tested the solution yet but it looks very viable to me.
https://drupal.org/node/2152335
Comment #4
brianbrarian CreditAttribution: brianbrarian commented@AlfTheCat - Did you ever find a working solution? I'm having the same problem importing from a large CSV file.