This repository has been archived by the owner on Jan 12, 2022. It is now read-only.
forked from felipelerena/FlightDeck
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:mozilla/FlightDeck into bug-61532…
…5-tree-ui
- Loading branch information
Showing
15 changed files
with
187 additions
and
18 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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
from celery.decorators import task | ||
|
||
|
||
@task(rate_limit='10/s') | ||
def touch_a_file(filename): | ||
f = open(filename,'w') | ||
f.write('touched') | ||
f.close(); | ||
|
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
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
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
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
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
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
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
-- This is a placeholder file: | ||
|
||
-- This directory is for use with schematic. See https://github.com/jbalogh/schematic for help |
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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import sys | ||
import os | ||
|
||
sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) | ||
|
||
import manage | ||
from django.conf import settings | ||
|
||
config = settings.DATABASES['default'] | ||
config['HOST'] = config.get('HOST', 'localhost') | ||
config['PORT'] = config.get('PORT', '3306') | ||
|
||
if not config['HOST'] or config['HOST'].endswith('.sock'): | ||
""" Oh you meant 'localhost'! """ | ||
config['HOST'] = 'localhost' | ||
|
||
s = 'mysql --silent {NAME} -h{HOST} -u{USER}' | ||
|
||
if config['PASSWORD']: | ||
s += ' -p{PASSWORD}' | ||
else: | ||
del config['PASSWORD'] | ||
if config['PORT']: | ||
s += ' -P{PORT}' | ||
else: | ||
del config['PORT'] | ||
|
||
db = s.format(**config) | ||
table = 'schema_version' |
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
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 |
---|---|---|
@@ -1,6 +1,9 @@ | ||
# | ||
# !!AUTO-GENERATED!! Edit scripts/crontab/make-crons.py instead. | ||
# | ||
MAILTO=flightdeck-developers@mozilla.org | ||
|
||
#once per day | ||
30 1 * * * apache cd /data/amo_python/src/builder.preview/flightdeck; /data/amo_python/src/builder.preview/flightdeck manage.py cron clean_tmp | ||
30 1 * * * cd /data/amo_python/src/builder.preview/flightdeck; /usr/bin/python26 manage.py cron clean_tmp | ||
|
||
MAILTO=root |
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 |
---|---|---|
@@ -1,6 +1,9 @@ | ||
# | ||
# !!AUTO-GENERATED!! Edit scripts/crontab/make-crons.py instead. | ||
# | ||
MAILTO=flightdeck-developers@mozilla.org | ||
|
||
#once per day | ||
30 1 * * * apache cd /data/amo_python/src/builder/flightdeck; /data/amo_python/src/builder.preview/flightdeck manage.py cron clean_tmp | ||
30 1 * * * apache cd /data/amo_python/src/builder/flightdeck; /usr/bin/python26 manage.py cron clean_tmp | ||
|
||
MAILTO=root |