docbrown/lib/tasks/fetch.rake

11 lines
321 B
Ruby

desc "This task is called by the Heroku scheduler add-on"
task fetch_all_rss: :environment do
Rails.application.eager_load!
RssReader.get_all_articles(force: false) # don't force fetch. Fetch "random" subset instead of all of them.
end
task github_repo_fetch_all: :environment do
GithubRepo.update_to_latest
end