Periodic tasks integration in Service class

Bug #1050366 reported by Mark McLoughlin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
oslo-incubator
Won't Fix
Medium
Unassigned
oslo.service
Won't Fix
Undecided
Unassigned

Bug Description

The Service class's periodic tasks integration was removed here: https://review.openstack.org/11065

Because we didn't want the base Service class knowing anything about the Manager class which is for RPC only

Basically, we want some way for the base class to know about all the objects which may implement the run_periodic_tasks() interface

In the case of rpc.Service, that's just the manager object. In the case of wsgi.Service, maybe that would be all objects in the application pipeline?

Revision history for this message
Angus Salkeld (asalkeld) wrote :

I personally find periodic a bit odd as it is not very controllable - you
don't know how often it is going to be called. I prefer the idea of a timer
as you know exactly how it is called and is not at the whim of the admin.

In nova we can define a Manager class that inherits from PeriodicTasks
the question is do other projects want a periodic api or timer api?

Any reason we can't just use the timer_add() method?

Mark McLoughlin (markmc)
affects: openstack-common → oslo
Changed in oslo-incubator:
status: Confirmed → Won't Fix
Changed in oslo.service:
status: New → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.