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
3d2361fb
Commit
3d2361fb
authored
15 years ago
by
Alex Barth
Browse files
Options
Downloads
Patches
Plain Diff
Add todos for making scheduler better separated from importer.
parent
8492427f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
includes/FeedsScheduler.inc
+4
-0
4 additions, 0 deletions
includes/FeedsScheduler.inc
with
4 additions
and
0 deletions
includes/FeedsScheduler.inc
+
4
−
0
View file @
3d2361fb
...
@@ -88,6 +88,8 @@ class FeedsScheduler implements FeedsSchedulerInterface {
...
@@ -88,6 +88,8 @@ class FeedsScheduler implements FeedsSchedulerInterface {
*
*
* If drupal_queue is present, only pushes refresh tasks to queue and
* If drupal_queue is present, only pushes refresh tasks to queue and
* returns. If drupal_queue is not available, works off tasks.
* returns. If drupal_queue is not available, works off tasks.
*
* @todo: Make import/expire agnostic, define general job callback interface.
*/
*/
public
function
cron
()
{
public
function
cron
()
{
...
@@ -189,6 +191,8 @@ class FeedsScheduler implements FeedsSchedulerInterface {
...
@@ -189,6 +191,8 @@ class FeedsScheduler implements FeedsSchedulerInterface {
*
*
* Used as worker callback invoked from feeds_scheduler_refresh() or
* Used as worker callback invoked from feeds_scheduler_refresh() or
* if drupal_queue is not enabled, directly from $this->cron().
* if drupal_queue is not enabled, directly from $this->cron().
*
* @todo: Make import/expire agnostic, define general job callback interface.
*/
*/
public
function
work
(
$feed_info
)
{
public
function
work
(
$feed_info
)
{
$importer
=
feeds_importer
(
$feed_info
[
'importer_id'
]);
$importer
=
feeds_importer
(
$feed_info
[
'importer_id'
]);
...
...
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