]> review.fuel-infra Code Review - openstack-build/heat-build.git/commit
scheduler: Fix inifinite loop for no-wait tasks
authorZane Bitter <zbitter@redhat.com>
Fri, 31 May 2013 19:34:36 +0000 (21:34 +0200)
committerZane Bitter <zbitter@redhat.com>
Fri, 31 May 2013 19:34:36 +0000 (21:34 +0200)
commit027e91c980eb581ca91cc1366390f68a9527f5eb
tree5165944b9fa19d1c71805e5d9585d251261c884c
parent15fab1b0ed1321d164ea01af572b6cc859438789
scheduler: Fix inifinite loop for no-wait tasks

When a task run by a DependencyTaskGroup completed immediately (i.e. it
was marked as done right after calling start()), the corresponding entry in
the dependency graph was never removed. As a result the DependencyTaskGroup
would continue running forever (or until it timed out).

Fixes bug #1186389

Change-Id: I9715b54a61d1c3adc22403bc39f8673306bffead
heat/engine/scheduler.py
heat/tests/test_scheduler.py