Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-44273

Back-off strategy for RSS feeds

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.6.1, 2.8.6, 2.9
    • 3.0
    • RSS
    • MOODLE_26_STABLE, MOODLE_28_STABLE, MOODLE_29_STABLE
    • MOODLE_30_STABLE
    • Hide

      Run the new tests: vendor\bin\phpunit block_rss_client_cron_testcase blocks/rss_client/tests/cron_test.php

      Via the Moodle interface

      Test that the block still displays feeds.

      1. Add an RSS feed block to a Moodle course.
      2. Add at least one RSS feed
      3. Run the moodle cron
      4. Check that messages from the feed now appear in the block in Moodle.

      If you have somewhere you can create RSS feeds and cause them to be unavailable you could do the following test:

      1. Add an RSS feed block to a Moodle course.
      2. Add at least one RSS feed
      3. Run the moodle cron
      4. Check that messages from the feed now appear in the block in Moodle.
      5. Make your feed inaccessible to Moodle
      6. Run cron, verify that the 'Error: could not load/find the RSS feed - skipping for x seconds' message appears for that RSS feed in the cron output
      7. Run cron again within the time: verify that the 'skipping until ' message appears against the feed in the cron output
      8. Make the RSS feed available again.
      9. Run cron after the time seen in step 7, verify that the feed shows as fetched in the cron output
      10. Run cron again and ensure that the feed is fetched.
      Show
      Run the new tests: vendor\bin\phpunit block_rss_client_cron_testcase blocks/rss_client/tests/cron_test.php Via the Moodle interface Test that the block still displays feeds. Add an RSS feed block to a Moodle course. Add at least one RSS feed Run the moodle cron Check that messages from the feed now appear in the block in Moodle. If you have somewhere you can create RSS feeds and cause them to be unavailable you could do the following test: Add an RSS feed block to a Moodle course. Add at least one RSS feed Run the moodle cron Check that messages from the feed now appear in the block in Moodle. Make your feed inaccessible to Moodle Run cron, verify that the 'Error: could not load/find the RSS feed - skipping for x seconds' message appears for that RSS feed in the cron output Run cron again within the time: verify that the 'skipping until ' message appears against the feed in the cron output Make the RSS feed available again. Run cron after the time seen in step 7, verify that the feed shows as fetched in the cron output Run cron again and ensure that the feed is fetched.

    Description

      Davo Smith contributed a patch for backing off bad RSS feeds:
      https://moodle.org/mod/forum/discuss.php?d=253717

      This seems like a nice idea to integrate

      Attachments

        Issue Links

          Activity

            People

              nmagill Neill Magill
              poltawski Dan Poltawski
              Ryan Wyllie Ryan Wyllie
              Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
              Simey Lameze Simey Lameze
              David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo
              Votes:
              6 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                16/Nov/15