Permalink
Browse files

Merge branch 'master' of github.com:criticaljuncture/cookbooks

  • Loading branch information...
2 parents 3161135 + ffc42b0 commit e96ab9f6ed20679d02437e965b34097b12dbee02 @peregrinator peregrinator committed Apr 23, 2012
Showing with 8 additions and 0 deletions.
  1. +8 −0 ubuntu/templates/default/cron/fr2_data.erb
@@ -9,6 +9,14 @@
# runs every 30 minutes from 7AM EDT until 5PM M-F
0,30 11-21 * * 1-5 <%=@run_user%> cd <%=@apache_web_dir%>/apps/<%=@app_name%>/current && /usr/bin/rake RAILS_ENV=<%=@rails_env%> PATH=/opt/ruby-enterprise/bin:$PATH content:entries:import:regulations_dot_gov:only_missing 2>&1 | sed "s/^/[$(date)] /" >> <%=@apache_web_dir%>/apps/<%=@app_name%>/shared/log/reg_gov_url_import.log
+# Find the matching regulations.gov URL for articles tardily added to regs.gov
+# runs every morning once
+0,30 6 * * * <%=@run_user%> cd <%=@apache_web_dir%>/apps/<%=@app_name%>/current && /usr/bin/rake RAILS_ENV=<%=@rails_env%> PATH=/opt/ruby-enterprise/bin:$PATH content:entries:import:regulations_dot_gov:tardy 2>&1 | sed "s/^/[$(date)] /" >> <%=@apache_web_dir%>/apps/<%=@app_name%>/shared/log/reg_gov_url_import_tardy.log
+
+# Confirm URLs and openness of comments that have a valid comment URL
+# runs every morning once
+0,30 5 * * * <%=@run_user%> cd <%=@apache_web_dir%>/apps/<%=@app_name%>/current && /usr/bin/rake RAILS_ENV=<%=@rails_env%> PATH=/opt/ruby-enterprise/bin:$PATH content:entries:import:regulations_dot_gov:open_comments 2>&1 | sed "s/^/[$(date)] /" >> <%=@apache_web_dir%>/apps/<%=@app_name%>/shared/log/reg_gov_url_import_open_comments.log
+
# Expire pages warning of late content at 9AM
# runs at 9AM EDT M-F
0 13,14 * * 1-5 <%=@run_user%> cd <%=@apache_web_dir%>/apps/<%=@app_name%>/current && /usr/bin/rake RAILS_ENV=<%=@rails_env%> PATH=/opt/ruby-enterprise/bin:$PATH varnish:expire:pages_warning_of_late_content 2>&1 | sed "s/^/[$(date)] /" >> <%=@apache_web_dir%>/apps/<%=@app_name%>/shared/log/late_page_expiration.log

0 comments on commit e96ab9f

Please sign in to comment.