]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Wait for periodic tasks to stop on exit
authorGorka Eguileor <geguileo@redhat.com>
Tue, 16 Feb 2016 18:03:49 +0000 (19:03 +0100)
committerGorka Eguileor <geguileo@redhat.com>
Tue, 16 Feb 2016 18:19:57 +0000 (19:19 +0100)
commit598e35c337c6acf0f7558a874e85c727fc0fbde2
tree75275eeba626fe7159b18704cc389ed06624f131
parent686da43b27ebb20af62acf4e48753eafd8e2297f
Wait for periodic tasks to stop on exit

When a Service in Cinder exits it stops all operations and waits for
them to complete, and it also stops all periodica tasks created with
FixedIntervalLoop, but it doesn't wait until these are completed.

This patch will wait for all periodic tasks that received the stop
request without raising an exception before exiting.

Change-Id: I984b8aebd40f9482f0cf8098146d1ccd635dc1d6
Closes-Bug: #1546234
cinder/service.py
cinder/tests/unit/test_service.py