-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[South Africa] Add cron job to sync EP UUIDs
- Loading branch information
1 parent
5dcc33f
commit 595c611
Showing
1 changed file
with
6 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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 { *)!! | ||
!!(* } *)!! |