Skip to content
Snippets Groups Projects
Commit 628793b0 authored by Alex Barth's avatar Alex Barth
Browse files

Split number of items to queue on cron run from feeds_schedule_num variable.

parent 89fe412f
No related branches found
No related tags found
No related merge requests found
......@@ -3,6 +3,8 @@
Feeds 6.x 1.0 xxx, 2009-xx-xx
-----------------------------
- Split number of items to queue on cron from feeds_schedule_num variable
(see README.txt)
- #619110 Fix node_delete() in FeedsNodeProcessor
- Add descriptions to all mapping sources and targets
......
......@@ -91,10 +91,15 @@ Description: Execution time for a queue worker, only effective if used with
Name: feeds_schedule_num
Default: 5
200 if drupal_queue is enabled
Description: The number of feeds to refresh on cron time.
If drupal_queue is enabled, the maximum number of feeds to move to
queue.
Description: The number of feeds to import on cron time.
Only has an effect if Drupal Queue is *not* enabled.
http://drupal.org/project/drupal_queue
Name: feeds_schedule_queue_num
Default: 200
The number of feeds to queue on cron time. Only has an effect if
Drupal Queue is enabled.
http://drupal.org/project/drupal_queue
Glossary
========
......
......@@ -110,9 +110,11 @@ class FeedsScheduler implements IFeedsScheduler {
if ($use_queue = module_exists('drupal_queue')) {
drupal_queue_include();
$queue = drupal_queue_get(FEEDS_SCHEDULER_QUEUE);
$num = variable_get('feeds_schedule_queue_num', 200);
}
else {
$num = variable_get('feeds_schedule_num', 5);
}
$num = variable_get('feeds_schedule_num', $use_queue ? 200 : 5);
$num = $num ? $num : 1;
// Iterate over feed configurations, pick $num feeds for each
// configuration, push to queue or refresh feeds.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment