#2174: Metrics require that db_poll_interval is set to a non-None value
----------------------+-----------------------
Reporter:  iustin     |      Owner:
    Type:  undecided  |     Status:  new
Priority:  minor      |  Milestone:  undecided
 Version:  0.8.5      |   Keywords:  metrics
----------------------+-----------------------
 I'm following the docs for 0.8.5 and I've enabled the metrics system via:

 {{{
 c['metrics'] = dict(log_interval=600, periodic_interval=10)
 }}}

 However, doing just this in a single-master setup results int:
 {{{

 2012-01-12 13:26:54+0000 [-] Log observer <bound method
 MetricLogObserver.emit of <buildbot.process.metrics.MetricLogObserver
 instance at 0x57fe9e0>> failed.
         Traceback (most recent call last):
 …

           File "/usr/local/lib/python2.6/dist-
 packages/buildbot-0.8.5-py2.6.egg/buildbot/process/metrics.py", line 286,
 in run
             if t < 0.8 * db_poll_interval:
         exceptions.TypeError: unsupported operand type(s) for *: 'float'
 and 'NoneType'
 }}}

 This is trivially fixable by adding a `db_poll_interval`, however I don't
 know if this affects anything in a single-master setup (and what should be
 the value).

-- 
Ticket URL: <http://trac.buildbot.net/ticket/2174>
Buildbot <http://buildbot.net/>
Buildbot: build/test automation
------------------------------------------------------------------------------
RSA(R) Conference 2012
Mar 27 - Feb 2
Save $400 by Jan. 27
Register now!
http://p.sf.net/sfu/rsa-sfdev2dev2
_______________________________________________
Buildbot-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/buildbot-commits

Reply via email to