Commit 7c835961 authored by Francesc Guasch's avatar Francesc Guasch
Browse files

fix(backend): do not count waiting processes

parent 2adbece4
......@@ -2286,7 +2286,8 @@ sub _domain_working {
}
my $sth = $CONNECTOR->dbh->prepare("SELECT id, status FROM requests "
." WHERE id <> ? AND id_domain=? "
." AND (status <> 'requested' AND status <> 'done' AND command <> 'set_base_vm')");
." AND (status <> 'requested' AND status <> 'done' AND status <> 'waiting' "
." AND command <> 'set_base_vm')");
$sth->execute($id_request, $id_domain);
my ($id, $status) = $sth->fetchrow;
# warn "CHECKING DOMAIN WORKING "
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment