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
f2ed1381
Commit
f2ed1381
authored
15 years ago
by
Alex Barth
Browse files
Options
Downloads
Patches
Plain Diff
Debugging queue compatibility.
parent
9fa49daf
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
feeds.module
+3
-1
3 additions, 1 deletion
feeds.module
includes/FeedsScheduler.inc
+5
-1
5 additions, 1 deletion
includes/FeedsScheduler.inc
with
8 additions
and
2 deletions
feeds.module
+
3
−
1
View file @
f2ed1381
...
@@ -18,6 +18,8 @@ define('FEEDS_EXPIRE_NEVER', -1);
...
@@ -18,6 +18,8 @@ define('FEEDS_EXPIRE_NEVER', -1);
// An object is not persistent at all. Compare to EXPORT_IN_DATABASE OR
// An object is not persistent at all. Compare to EXPORT_IN_DATABASE OR
// EXPORT_IN_CODE.
// EXPORT_IN_CODE.
define
(
'FEEDS_EXPORT_NONE'
,
0x0
);
define
(
'FEEDS_EXPORT_NONE'
,
0x0
);
// The Drupal Queue FeedsScheduler may use for scheduling importing or expiry.
define
(
'FEEDS_SCHEDULER_QUEUE'
,
'feeds_queue'
);
/**
/**
...
@@ -38,7 +40,7 @@ function feeds_cron() {
...
@@ -38,7 +40,7 @@ function feeds_cron() {
*/
*/
function
feeds_cron_queue_info
()
{
function
feeds_cron_queue_info
()
{
$queues
=
array
();
$queues
=
array
();
$queues
[
'feeds_queue'
]
=
array
(
$queues
[
FEEDS_SCHEDULER_QUEUE
]
=
array
(
'worker callback'
=>
'feeds_scheduler_work'
,
'worker callback'
=>
'feeds_scheduler_work'
,
'time'
=>
variable_get
(
'feeds_worker_time'
,
60
),
'time'
=>
variable_get
(
'feeds_worker_time'
,
60
),
);
);
...
...
This diff is collapsed.
Click to expand it.
includes/FeedsScheduler.inc
+
5
−
1
View file @
f2ed1381
...
@@ -111,7 +111,11 @@ class FeedsScheduler implements IFeedsScheduler {
...
@@ -111,7 +111,11 @@ class FeedsScheduler implements IFeedsScheduler {
// Get feeds configuration, check whether drupal_queue is present and set
// Get feeds configuration, check whether drupal_queue is present and set
// parameters accordingly.
// parameters accordingly.
if
(
$importers
=
feeds_importer_load_all
())
{
if
(
$importers
=
feeds_importer_load_all
())
{
$use_queue
=
module_exists
(
'drupal_queue'
);
if
(
$use_queue
=
module_exists
(
'drupal_queue'
))
{
drupal_queue_include
();
$queue
=
drupal_queue_get
(
FEEDS_SCHEDULER_QUEUE
);
}
$num
=
variable_get
(
'feeds_schedule_num'
,
$use_queue
?
200
:
5
);
$num
=
variable_get
(
'feeds_schedule_num'
,
$use_queue
?
200
:
5
);
$num
=
$num
?
$num
:
1
;
$num
=
$num
?
$num
:
1
;
...
...
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