I'm running drupal 7 on windows. How do I access the UI to schedule a feed to run periodically.

Comments

michaelfavia’s picture

Title: How do I schedule a feed import to run with cron » Standalone feeds fail to import on regular cron run
Category: support » bug

Cross posting from #1329502: How to Programmatically initiate standalone form feed import on cron:

This is also something im looking for in the 7.x branch.

I would like to see the saved feed url value from the "import/FEED_NAME" form used on recurring cron runs.

As a stopgap, I have temporarily created a content type and a single node to attach the feed to but that seems like alot of unnecessary overhead for 1 feel url. Thoughts?

Updating this to a bug report because nothing in the UI indicates that the schedule will be ignored if you DONT attach it to a nde type. I'd be happy to patch this with a little direction from the maintainers.

that0n3guy’s picture

Version: 7.x-2.0-alpha4 » 7.x-2.0-alpha5

I am also seeing this issue in alpha 5. Here is my importer. First run works fine. If I manual click import again on the standalone form, it updates the nodes just fine. But it won't run on cron.

Here is an export:

$feeds_importer = new stdClass();
$feeds_importer->disabled = FALSE; /* Edit this to true to make a default feeds_importer disabled initially */
$feeds_importer->api_version = 1;
$feeds_importer->id = 'job_import';
$feeds_importer->config = array(
  'name' => 'Job Import',
  'description' => 'Import jobs from csv',
  'fetcher' => array(
    'plugin_key' => 'FeedsFileFetcher',
    'config' => array(
      'allowed_extensions' => 'txt csv tsv xml opml',
      'direct' => 1,
    ),
  ),
  'parser' => array(
    'plugin_key' => 'FeedsCSVParser',
    'config' => array(
      'delimiter' => ',',
      'no_headers' => 0,
    ),
  ),
  'processor' => array(
    'plugin_key' => 'FeedsNodeProcessor',
    'config' => array(
      'content_type' => 'job',
      'expire' => '-1',
      'author' => '1',
      'mappings' => array(
        0 => array(
          'source' => 'JobNo',
          'target' => 'field_job_id',
          'unique' => FALSE,
        ),
        1 => array(
          'source' => 'JobName',
          'target' => 'field_job_name',
          'unique' => FALSE,
        ),
        2 => array(
          'source' => 'LocationCity',
          'target' => 'field_address:locality',
          'unique' => FALSE,
        ),
        3 => array(
          'source' => 'LocationState ',
          'target' => 'field_address:administrative_area',
          'unique' => FALSE,
        ),
        4 => array(
          'source' => 'LocationZip',
          'target' => 'field_address:postal_code',
          'unique' => FALSE,
        ),
        5 => array(
          'source' => 'JobNo',
          'target' => 'guid',
          'unique' => 1,
        ),
        6 => array(
          'source' => 'LocationAddr1',
          'target' => 'field_address:thoroughfare',
          'unique' => FALSE,
        ),
        7 => array(
          'source' => 'LocationAddr2',
          'target' => 'field_address:premise',
          'unique' => FALSE,
        ),
      ),
      'update_existing' => '2',
      'input_format' => 'plain_text',
    ),
  ),
  'content_type' => '',
  'update' => 0,
  'import_period' => '1800',
  'expire_period' => 3600,
  'import_on_create' => 1,
  'process_in_background' => 0,
);

A wierd thing w/ that export is that I have update set to true and my expire set to never... but the above doesn't reflect that it seems.

dgtlmoon’s picture

Status: Active » Closed (duplicate)