diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..7027697 --- /dev/null +++ b/.travis.yml @@ -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 diff --git a/app.yaml b/app.yaml index 86b1ecc..7a61243 100644 --- a/app.yaml +++ b/app.yaml @@ -1,5 +1,5 @@ application: 'hello-admin' -version: 57e +version: 58 runtime: python27 api_version: 1 diff --git a/cron/elasticsearch_cron.py b/cron/elasticsearch_cron.py index ed29cf1..3a4fe91 100644 --- a/cron/elasticsearch_cron.py +++ b/cron/elasticsearch_cron.py @@ -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(