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

Add todos for making scheduler better separated from importer.

parent 8492427f
No related branches found
No related tags found
No related merge requests found
...@@ -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']);
......
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