Milimetric has submitted this change and it was merged.
Change subject: Adding some more visibility into query problems
......................................................................
Adding some more visibility into query problems
Also: changing edits-monthly-new-active to run hourly as the metric it's
using is meant to be computed daily
Change-Id: I65b811185ca31a3632d864f258f69a9f27fca98f
---
M generate.py
M mobile/config.yaml
2 files changed, 9 insertions(+), 2 deletions(-)
Approvals:
Milimetric: Looks good to me, approved
diff --git a/generate.py b/generate.py
index a5e1b75..81739e5 100644
--- a/generate.py
+++ b/generate.py
@@ -16,6 +16,8 @@
from dateutil.relativedelta import relativedelta
import json
+from traceback import format_exc
+
LOG_FILE = 'history.json'
@@ -249,7 +251,12 @@
csv_header = headers
# FIXME: Support other time periods other than months?
csv_header.insert(0, date_type)
- cache[graph_date_key] = list(rows[0])
+ try:
+ cache[graph_date_key] = list(rows[0])
+ except Exception, e:
+ print('{}: Error: {}, db: {}, graph key: {}, rows: {},
query: \n{}'.format(
+ datetime.datetime.now(), format_exc(e), db_name,
graph_key, rows, query
+ ))
else:
print 'Skip generation of %s' % graph_date_key
diff --git a/mobile/config.yaml b/mobile/config.yaml
index 405929d..3f80cab 100644
--- a/mobile/config.yaml
+++ b/mobile/config.yaml
@@ -129,7 +129,7 @@
starts: 2013-05-01
edits-monthly-new-active:
title: Editors who reached 5 mobile edits on enwiki within 30
days of registering
- frequency: daily
+ frequency: hourly
timeboxed: true
starts: 2014-01-01
thanks-daily:
--
To view, visit https://gerrit.wikimedia.org/r/166770
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I65b811185ca31a3632d864f258f69a9f27fca98f
Gerrit-PatchSet: 2
Gerrit-Project: analytics/limn-mobile-data
Gerrit-Branch: master
Gerrit-Owner: Milimetric <[email protected]>
Gerrit-Reviewer: Milimetric <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits