Scheduler.WebHome » Scheduler Job to ensure reader feeds are loading

Scheduler Job to ensure reader feeds are loading

Job name:

Reader Feed Loader

Job description:

Ensures reader feeds are loading.

Job cron expression:

0 * * * * ?

Job script:

def configurationDocuments = services.query.xwql("from doc.object('ReaderCode.ReaderConfigurationClass') as config").execute()
configurationDocuments.each {
  def config = xwiki.getDocument(it);
  def interval = config.getObject("ReaderCode.ReaderConfigurationClass").getProperty("updateFrequency").value
  def thread = xwiki.feed.getUpdateThread(config.space)
 if (!thread) {
     xwiki.feed.startUpdateFeedsInSpace(config.space, interval * 60000);
 }
}

Back to the job list

 

(C) Student Hubs 2011
Bristol Hub is a branch of Student Hubs, a registered charity in England and Wales, number 1122328.
Register - Log-in