зеркало из https://github.com/mozilla/bedrock.git
Bug 1057051: add crontabs for dev, stage, and prod
This commit is contained in:
Родитель
6814267183
Коммит
11fd1d7184
|
@ -0,0 +1,18 @@
|
|||
MAILTO="webops-cron@mozilla.com,cron-bedrock@mozilla.com"
|
||||
0-59/10 * * * * root /data/bedrock-dev/src/update-www-dev.allizom.org.sh
|
||||
1-59/10 * * * * root /data/bedrock-dev/src/update-www-dev.allizom.org-django.sh
|
||||
0 * * * * root cd /data/bedrock-dev/src/www-dev.allizom.org-django/bedrock; python manage.py cron update_feeds > /dev/null 2>&1
|
||||
*/5 * * * * root cd /data/bedrock-dev/src/www-dev.allizom.org-django/bedrock; python manage.py rnasync > /dev/null 2>&1
|
||||
|
||||
*/15 * * * * root /data/bedrock-dev/src/update-www-dev.allizom.org-svn-locale.sh
|
||||
|
||||
# bug 1014586
|
||||
3 */2 * * * root cd /data/bedrock-dev/src/www-dev.allizom.org-django/bedrock; python manage.py cron update_tweets > /dev/null 2>&1
|
||||
|
||||
# bug 1072999
|
||||
1 11 * * * root cd /data/bedrock-dev/src/www-dev.allizom.org-django/bedrock; python manage.py update_security_advisories --quiet > /dev/null 2>&1
|
||||
1 16 * * * root cd /data/bedrock-dev/src/www-demo1.allizom.org-django/bedrock; python manage.py update_security_advisories --quiet > /dev/null 2>&1
|
||||
1 21 * * * root cd /data/bedrock-dev/src/www-demo2.allizom.org-django/bedrock; python manage.py update_security_advisories --quiet > /dev/null 2>&1
|
||||
1 26 * * * root cd /data/bedrock-dev/src/www-demo3.allizom.org-django/bedrock; python manage.py update_security_advisories --quiet > /dev/null 2>&1
|
||||
1 31 * * * root cd /data/bedrock-dev/src/www-demo4.allizom.org-django/bedrock; python manage.py update_security_advisories --quiet > /dev/null 2>&1
|
||||
1 36 * * * root cd /data/bedrock-dev/src/www-demo5.allizom.org-django/bedrock; python manage.py update_security_advisories --quiet > /dev/null 2>&1
|
|
@ -0,0 +1,19 @@
|
|||
MAILTO="webops-cron@mozilla.com,cron-bedrock@mozilla.com"
|
||||
|
||||
# webdev requests that prod auto-updates the PHP side, for similar to old
|
||||
# setup... not currently auto-updating Django side
|
||||
# This will likely change to Freddo / Chief soon
|
||||
*/10 * * * * root /data/bedrock/src/update-www.mozilla.org.sh
|
||||
|
||||
*/5 * * * * root cd /data/bedrock/src/www.mozilla.org-django/bedrock; python manage.py rnasync > /dev/null 2>&1
|
||||
*/15 * * * * root /data/bedrock/src/update-www.mozilla.org-cron-svn-locale.sh &> /dev/null
|
||||
# outputs when the run completed to http://www.mozilla.org/media/locale_finished.txt
|
||||
|
||||
# disabled per bug 1042074
|
||||
#1-59/15 * * * * root /data/bedrock/src/update-www.mozilla.org-product-details.sh
|
||||
|
||||
# bug 996144 & 1014586
|
||||
2 */6 * * * root cd /data/bedrock/src/www.mozilla.org-django/bedrock; python manage.py cron update_tweets > /dev/null 2>&1
|
||||
|
||||
# bug 1072999
|
||||
11 * * * * root cd /data/bedrock/src/www.mozilla.org-django/bedrock; python manage.py update_security_advisories --quiet > /dev/null 2>&1
|
|
@ -0,0 +1,26 @@
|
|||
MAILTO="webops-cron@mozilla.com,cron-bedrock@mozilla.com"
|
||||
|
||||
# webdev requests that prod auto-updates the PHP side, for similar to old
|
||||
0-59/10 * * * * root /data/bedrock-stage/src/update-www.allizom.org.sh
|
||||
|
||||
*/15 * * * * root /data/bedrock-stage/src/update-www.allizom.org-svn-locale.sh
|
||||
# outputs when the run completed to http://www.allizom.org/media/locale_finished.txt
|
||||
|
||||
# In testing for bug 753566 resolution...
|
||||
# not completely sure how I want to solve this yet
|
||||
#
|
||||
# run the crons from the admin node, but on the web nodes... does extra work, but works
|
||||
0 * * * * * root echo "cd /data/www/www.allizom.org-django/bedrock; python manage.py cron update_feeds | /usr/bin/issue-multi-command bedrock-stage
|
||||
*/5 * * * * root cd /data/bedrock-stage/src/www.allizom.org-django/bedrock; python manage.py rnasync > /dev/null 2>&1
|
||||
|
||||
# bug 996144
|
||||
1 */2 * * * root cd /data/bedrock-stage/src/www.allizom.org-django/bedrock; python manage.py cron update_tweets > /dev/null 2>&1
|
||||
|
||||
#
|
||||
# alternative- run the cron twice right on the admin node, passing --settings=settings/memcache-XXX.py... will this work?
|
||||
# requires maintaining 2 extra settings files, at least wrt memcache settings
|
||||
#0 * * * * * root cd /data/www.allizom.org-django/bedrock; python manage.py --settings=settings/memcache-phx1.py cron update_feeds 2>&1 1> /dev/null | grep -v 'old-style Playdoh layout'"
|
||||
#0 * * * * * root cd /data/www.allizom.org-django/bedrock; python manage.py --settings=settings/memcache-scl3.py cron update_feeds 2>&1 1> /dev/null | grep -v 'old-style Playdoh layout'"
|
||||
|
||||
# bug 1072999
|
||||
1 41 * * * root cd /data/bedrock-stage/src/www.allizom.org-django/bedrock; python manage.py update_security_advisories --quiet > /dev/null 2>&1
|
Загрузка…
Ссылка в новой задаче