Last active
October 27, 2016 00:53
-
-
Save iamkevingreen/1f5d08419c83dcd8b71abb0ff9637b85 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Meteor } from 'meteor/meteor' | |
Meteor.startup(() => { | |
Meteor.call('getCMSContent') | |
SyncedCron.add({ | |
name: 'Scrape WordPress API', | |
schedule: function(parser) { | |
// parser is a later.parse object | |
return parser.text('every 1 hours') | |
}, | |
job: function() { | |
Meteor.call('getCMSContent') | |
} | |
}) | |
}) | |
SyncedCron.start(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment