Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
language: python
python:
- "2.7"
deploy:
provider: gae
keyfile: "YOUR SERVICE ACCOUNT JSON FILE"
default: true
project: "hello-admin"

notifications:
email:
recipients:
-long+travis@sayhello.com
on_success: never
on_failure: always
2 changes: 1 addition & 1 deletion app.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
application: 'hello-admin'
version: 57e
version: 58

runtime: python27
api_version: 1
Expand Down
2 changes: 1 addition & 1 deletion cron/elasticsearch_cron.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def get(self):


class ElasticSearchDropIndex(ElasticSearchHandler):
TOLERANCE_DAYS = 7
TOLERANCE_DAYS = 14
def get(self):
index_name = "sense-logs-" + (datetime.datetime.utcnow() - datetime.timedelta(days=self.TOLERANCE_DAYS)).strftime("%Y-%m-%d")
response = requests.delete(
Expand Down