Keep executing queries even if a single one fails
This commit is contained in:
+10
-2
@@ -281,9 +281,17 @@ sub results {
|
|||||||
# Filters are combined into one
|
# Filters are combined into one
|
||||||
my @configs = Filters::get_default_configs();
|
my @configs = Filters::get_default_configs();
|
||||||
|
|
||||||
|
# Keep trying even if a single query fails
|
||||||
for my $query (@queries) {
|
for my $query (@queries) {
|
||||||
Util::execute_query( $experiment, $query,
|
eval {
|
||||||
$remote_db_conf, $remote_builds_dir, 1, @configs );
|
Util::execute_query( $experiment, $query,
|
||||||
|
$remote_db_conf, $remote_builds_dir, 1, @configs );
|
||||||
|
1;
|
||||||
|
} or do {
|
||||||
|
my $error = $@ || 'bullshit error';
|
||||||
|
chomp $error;
|
||||||
|
warn "Query $query failed for $experiment: $error\n";
|
||||||
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user