~abentley/charms/trusty/juju-reports/disable-cloud-health-sync

« back to all changes in this revision

Viewing changes to templates/crontab.tmpl

  • Committer: Martin Packman
  • Date: 2015-09-25 21:15:26 UTC
  • mfrom: (69.1.1 juju-reports)
  • Revision ID: martin.packman@canonical.com-20150925211526-eqolg0k3ipu1f1oj
Use flock to prevent concurrent execution of jobs from cron

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
$error_email
4
4
INI=$reports_home/production.ini
5
5
 
6
 
*/15 * * * * ubuntu $reports_home/bin/python $reports_home/jujureports/jobs/charm_test.py --log-file $logs/charm_test.log
7
 
*/30 * * * * ubuntu $reports_home/bin/python $reports_home/jujureports/jobs/sync_health_results.py --log-file $logs/sync_health_results.log
8
 
*/$interval * * * * ubuntu get-s3-ci-results --email-logs --log-file $logs/get-s3-ci-results.log
 
6
*/15 * * * * ubuntu flock -n $lockdir/charm_test.lock python $reports_home/jujureports/jobs/charm_test.py --log-file $logs/charm_test.log
 
7
*/30 * * * * ubuntu flock -n $lockdir/sync_health_results.lock python $reports_home/jujureports/jobs/sync_health_results.py --log-file $logs/sync_health_results.log
 
8
*/$interval * * * * ubuntu flock -n $lockdir/get_s3_ci_results.lock get-s3-ci-results --email-logs --log-file $logs/get-s3-ci-results.log
9
9
# The weekday below should match the value scorecard.collection_day
10
10
# in the file production.ini in lp:juju-reports.
11
11
0 16 * * * ubuntu update-bugs --email-logs --log-file=$logs/update-bugs.log && scorecard --email-logs --log-file=$logs/scorecard.log
12
12
#0 0 * * 1 ubuntu INI=production.ini $reports_home/bin/python $reports_home/jujureports/jobs/cabs.py
13
13
5 * * * * ubuntu cloud-health --email-logs --log-file=$logs/cloud-health.log
14
14
10 6 * * 1 ubuntu industrial-test --email-logs --log-file=$logs/industrial-test.log
15
 
* * * * * ubuntu outcome-analyser scan-queued --email-logs --log-file=$logs/scan-queued.log
 
15
* * * * * ubuntu flock -n $lockdir/outcome_analyser.lock outcome-analyser scan-queued --email-logs --log-file=$logs/scan-queued.log
16
16
0 */6 * * * ubuntu $reports_home/bin/python $reports_home/jujureports/jobs/comp_test.py
17
17