Jobs Automated Using Cron - OpenDemocracyManitoba/winnipegelection GitHub Wiki

There are currently two jobs that are automated using cron:

  • News Scraping at 8am Every Day
  • Sitemap Generation at 3am Every Day

The cron file currently looks like this:

0 9 * * * cd /var/www/winnipegelection/production/ && /home/stungeye/.rbenv/shims/bundle exec rake gnews:find_mentions RAILS_ENV=production > recent_news_scrape 2> recent_news_errors
0 4 * * * cd /var/www/winnipegelection/production/ && /home/stungeye/.rbenv/shims/bundle exec rake -s sitemap:refresh 2> recent_sitemap_errors

Note: Server time is ahead of CST by 1 hour.