Closed (outdated)
Project:
Feeds
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
2 May 2013 at 11:21 UTC
Updated:
26 Nov 2025 at 14:42 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
klausiPatch attached.
Comment #3
klausiAdded an isset() for the new setting to avoid PHP notices for old configurations.
Comment #4
klausiNow that we use queue scheduling directly in scheduleImport() of FeedsSource we need to be careful to only invoke schedule if the batch is complete.
Comment #5
twistor commentedHmm... I'm not sure about this. I've been avoiding adding more options at this point.
If we can only re-schedule when the batch is complete, then form should be disabled if the progress is running. However, it should always be safe to call $source->schedule(), so does this means we introduced a bug in scheduleImport()?
Still not sure, but at a minimum, this would have to be optional. I don't want everyone to get a new form option in everybody's face. This could be done in a contrib module.
Comment #6
klausiIt is not safe to call $source->schedule() now, because we add items to the queue if a batch is in progress. What happened to me in this case is that every import step triggers a source safe which had triggered a schedule() with this patch. So I got 32.000 queue items for one import node with this patch, meaning that the import would run amok and execute all the time with cron.
So maybe we should consider the earlier patch version in #1231332: periodic import imports only one file per cron, which only adds to the queue in the queue worker.
Comment #7
klausiJust updating the patch here because FEEDS_BATCH_COMPLETE is now a float.
Comment #8
bluegeek9 commentedUnfortunately, Drupal 7 is End of Life and no longer supported. We strongly encourage you to upgrade to a supported version of Drupal.