Commit 3afdc510 authored by Francesc Guasch's avatar Francesc Guasch
Browse files

The request may not be connected to the DB

parent 81a05023
......@@ -8,6 +8,7 @@ use DBIx::Connector;
use Moose;
use YAML;
use Ravada::Request;
use Ravada::VM::KVM;
=head1 NAME
......@@ -229,6 +230,8 @@ This is run in the ravada backend. It processes the commands requested by the fr
sub process_requests {
my $self = shift;
$Ravada::Request::CONNECTOR = $CONNECTOR;
my $sth = $CONNECTOR->dbh->prepare("SELECT id FROM requests WHERE status='requested'");
$sth->execute;
while (my ($id)= $sth->fetchrow) {
......
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