Commit 8f8ed8dd authored by Francesc Guasch's avatar Francesc Guasch
Browse files

Don't kill old requested process at startup

parent 99ba6598
......@@ -702,12 +702,12 @@ Before processing requests, old killed requests must be cleaned.
sub clean_killed_requests {
my $self = shift;
my $sth = $CONNECTOR->dbh->prepare("SELECT id FROM requests "
." WHERE status <> 'done' "
." WHERE status <> 'done' AND STATUS <> 'requested'"
);
$sth->execute;
while (my ($id) = $sth->fetchrow) {
my $req = Ravada::Request->open($id);
$req->status("done","Killed before completion");
$req->status("done","Killed ".$req->command." before completion");
}
}
......
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