I was forced to upgrade from PHP5.3 to PHP8.3 for security reasons and migrate from D7.36 to 7.103.

I had imports which create nodes from XML files.
Feeds importers are configured to run in background, when i uncheck this config, import is working (take a very long time but working).

Imports are triggered by hook_cron which is called externally every day early in the morning by server cron.

Before migrating to PHP8.3, imports were configured the same (run in background) and were automatically triggered by cron. But now, they are stuck in SystemQueue and never triggered

Do I have to write code to trigger import in Queue ?

Comments

stephanelameul created an issue. See original summary.

stephanelameul’s picture

Issue summary: View changes
megachriz’s picture

Status: Active » Fixed

No, queue tasks should be executed during cron runs. It is possible that a Feeds import task gets stuck. For example if a resource to import is (temporary) unavailable or if a (fatal) error occurs during the import. Or if a server crashes in the middle of an import. Can it be that during the PHP upgrade an import was active?

What you can do:

  • Install the Queue UI module to inspect which Feeds queue task got stuck. Pay attention to the "Expire" column. Is there a value there? Does that value ever change? Check a few hours (and cron runs) later to see if it still has the same "Expire" value. If it changes, then Feeds tries to pick up the task again, but then it probably also fails again.
  • Check the server logs. Some errors don't get logged by Drupal.
  • Unlock the feed/importer in question and remove any "feeds_source_import" tasks from the queue. Then see if the import on cron runs works again.
  • I once had on a site that was running for many years that no more new queue tasks could be created. In all those years more than a billion of queue tasks had been executed (apparently). I fixed that problem by truncating the queue table, so that queue task ID's started at 1 again. (I think this was on a D8 site though, not D7. Feeds 8.x-3.x creates a queue task for every item to import, so that eventually adds up if ten thousands of items are imported every day.)

I hope this helps you further. If not, feel free to reopen this issue.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.