Activity log for bug #1622612

Date Who What changed Old value New value Message
2016-09-12 13:28:31 Lucas Alvares Gomes bug added bug
2016-09-12 13:29:02 Lucas Alvares Gomes description We could allow passing a function callback to the "spacing" parameter of the @periodic decorator, that would make it more flexible and would enable things like refreshing the interval values when the service re-loads the configuration file (in case of a SIGHUP). For example: def _sync_states(): return CONF.sync_states_interval class Foo(object): @periodics.periodic(spacing=_sync_states) def sync_states(self): ... We could allow passing a function callback to the "spacing" parameter of the @periodic decorator, that would make it more flexible and would enable things like refreshing the interval values when the service re-loads the configuration file (in case of a SIGHUP). For example:  def _sync_states():     return CONF.sync_states_interval  class Foo(object):      @periodics.periodic(spacing=_sync_states)      def sync_states(self):          ... Alternatively we could have another parameter for that as well, "spacing_func" maybe?
2018-04-04 16:35:02 Ben Nemec futurist: status New Confirmed
2018-04-04 16:35:04 Ben Nemec futurist: importance Undecided Wishlist