bodhi/jobs.py | 4 ++--
bodhi/metrics.py | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
New commits:
commit c882d90ede0f1c4e1320a5625f5a5e000d48623c
Author: Luke Macken <lmacken(a)redhat.com>
Date: Wed Dec 10 16:08:34 2008 -0500
Handle None date_pushed's in the bodhi.metrics.AllMetric.update method
diff --git a/bodhi/metrics.py b/bodhi/metrics.py
index e612690..c53aa07 100644
--- a/bodhi/metrics.py
+++ b/bodhi/metrics.py
@@ -66,7 +66,7 @@ class AllMetric(Metric):
def update(self, update):
if update.status != 'stable':
return
- if update.date_pushed < self.earliest:
+ if update.date_pushed and update.date_pushed < self.earliest:
self.earliest = update.date_pushed
if not self.timeline[update.type].has_key(update.date_pushed.month):
self.timeline[update.type][update.date_pushed.month] = 0
commit 45a9f1dce7e2258013bcc62992a0057079032218
Author: Luke Macken <lmacken(a)redhat.com>
Date: Wed Dec 10 16:03:44 2008 -0500
Schedule our refresh_metrics job to run daily, and cache_release_data to run every 12
hours
diff --git a/bodhi/jobs.py b/bodhi/jobs.py
index 7192054..7ec4bca 100644
--- a/bodhi/jobs.py
+++ b/bodhi/jobs.py
@@ -172,7 +172,7 @@ def schedule():
scheduler.add_interval_task(action=cache_release_data,
taskname='Cache release data',
initialdelay=0,
- interval=172800)
+ interval=43200)
# If we're the masher, then handle the costly metric regenration
if not config.get('masher'):
@@ -180,4 +180,4 @@ def schedule():
scheduler.add_interval_task(action=refresh_metrics,
taskname='Refresh our metrics',
initialdelay=7200,
- interval=172800)
+ interval=86400)
Show replies by date