Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
feeds
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
drupal.org
feeds
Commits
628793b0
Commit
628793b0
authored
15 years ago
by
Alex Barth
Browse files
Options
Downloads
Patches
Plain Diff
Split number of items to queue on cron run from feeds_schedule_num variable.
parent
89fe412f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
CHANGELOG.txt
+2
-0
2 additions, 0 deletions
CHANGELOG.txt
README.txt
+9
-4
9 additions, 4 deletions
README.txt
includes/FeedsScheduler.inc
+4
-2
4 additions, 2 deletions
includes/FeedsScheduler.inc
with
15 additions
and
6 deletions
CHANGELOG.txt
+
2
−
0
View file @
628793b0
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
README.txt
+
9
−
4
View file @
628793b0
...
...
@@ -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
========
...
...
This diff is collapsed.
Click to expand it.
includes/FeedsScheduler.inc
+
4
−
2
View file @
628793b0
...
...
@@ -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.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment