service thread group graceful is not working
Bug #1769825 reported by
TommyLike
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
oslo.service |
Fix Released
|
Medium
|
TommyLike |
Bug Description
Graceful exit is not working since we removed the timers before waiting them to complete, see here [1]
Changed in oslo.service: | |
assignee: | nobody → TommyLike (hu-husheng) |
status: | New → In Progress |
Changed in oslo.service: | |
importance: | Undecided → Medium |
To post a comment you must log in.
Specifically, periodic timers spawned a thread each time the timer is triggered. Calling stop(graceful=True) does not wait for those tasks that may be running to complete before returning. Only tasks created by add_thread(), not add_timer(), are guaranteed to be complete.