Skip to content

Commit

Permalink
[South Africa] Add cron job to sync EP UUIDs
Browse files Browse the repository at this point in the history
  • Loading branch information
chrismytton committed Jan 31, 2018
1 parent 5dcc33f commit 595c611
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions conf/crontab.ugly
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ MAILTO=cron-!!(*= $site *)[email protected]
# NOTE - this should probably be removed once the live site is launched
13 0 * * * !!(*= $user *)!! output-on-error update_za_hansard.bash

# Sync EveryPolitician UUIDs to local DB
0 10 * * * !!(*= $user *)!! output-on-error run_management_command core_sync_everypolitician_uuid

!!(* } elsif ($vhost eq 'www.pa.org.za') { *)!!

# NOTE - until the live site is launched, crons are turned off in vhosts.pl
Expand All @@ -77,5 +80,8 @@ MAILTO=cron-!!(*= $site *)[email protected]
13 2 * * * !!(*= $user *)!! run_management_command core_export_to_popolo_json /data/vhost/!!(*= $vhost *)!!/media_root/popolo_json/ http://www.pa.org.za
30 3 * * * !!(*= $user *)!! run_management_command core_export_to_popolo_json --pombola /data/vhost/!!(*= $vhost *)!!/media_root/popolo_json/ http://www.pa.org.za

# Sync EveryPolitician UUIDs to local DB
30 10 * * * !!(*= $user *)!! output-on-error run_management_command core_sync_everypolitician_uuid

!!(* } else { *)!!
!!(* } *)!!

0 comments on commit 595c611

Please sign in to comment.