Skip to content
Snippets Groups Projects
Commit 1dc5459b authored by Leo Gordon's avatar Leo Gordon
Browse files

less dependency on non-defined rc_xparams

parent 7d55c42a
No related branches found
No related tags found
No related merge requests found
......@@ -369,7 +369,7 @@ sub run_autonomously {
my $this_rc_worker_count = $rc_hash->{$rc_id};
print "Submitting $this_rc_worker_count workers (rc_id=$rc_id) to ".$self->{'meadow'}->type()."\n";
$self->{'meadow'}->submit_workers($iteration, $worker_cmd, $this_rc_worker_count, $rc_id, $rc_xparams{$rc_id});
$self->{'meadow'}->submit_workers($iteration, $worker_cmd, $this_rc_worker_count, $rc_id, $rc_xparams{$rc_id} || '');
}
} else {
print "Not submitting any workers this iteration\n";
......
......@@ -42,21 +42,25 @@ sub main {
my $hive_dba = new Bio::EnsEMBL::Hive::DBSQL::DBAdaptor(%{$self->{-pipeline_db}});
my $resource_description_adaptor = $hive_dba->get_ResourceDescriptionAdaptor;
warn "Loading the ResourceDescriptions ...\n";
# pre-load the resource_description table with the values that we'll need:
while( my($rc_id, $mt2param) = each %{$self->{-resource_classes}} ) {
my $description = delete $mt2param->{-desc};
while( my($meadow_type, $xparams) = each %$mt2param ) {
$resource_description_adaptor->create_new(
-RC_ID => $rc_id,
-MEADOW_TYPE => $meadow_type,
-PARAMETERS => $xparams,
-DESCRIPTION => $description,
);
# pre-load the resource_description table
if($self->{-resource_classes}) {
warn "Loading the ResourceDescriptions ...\n";
while( my($rc_id, $mt2param) = each %{$self->{-resource_classes}} ) {
my $description = delete $mt2param->{-desc};
while( my($meadow_type, $xparams) = each %$mt2param ) {
$resource_description_adaptor->create_new(
-RC_ID => $rc_id,
-MEADOW_TYPE => $meadow_type,
-PARAMETERS => $xparams,
-DESCRIPTION => $description,
);
}
}
warn "Done.\n\n";
}
warn "Done.\n\n";
my $analysis_adaptor = $hive_dba->get_AnalysisAdaptor;
......
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