Commit 86479ba9 authored by Andrii Yershov's avatar Andrii Yershov Committed by Youri van Koppen
Browse files

Issue #3255000 by ershov.andrey: Do not reset queued time for un-queued feeds in feeds_cron().

parent a3da49a4
Loading
Loading
Loading
Loading
+1 −0
Changes for feeds.module: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
@@ -103,6 +103,7 @@ function feeds_cron() {
  // Delete queued timestamp after 12 hours assuming the update has failed.
  $ids = \Drupal::entityQuery('feeds_feed')
    ->condition('queued', \Drupal::time()->getRequestTime() - (3600 * 12), '<')
    ->condition('queued', 0, '<>')
    ->execute();

  foreach (Feed::loadMultiple($ids) as $feed) {