Skip to content

Commit

Permalink
Don't bother with the key if the job is standalone
Browse files Browse the repository at this point in the history
  • Loading branch information
muffato authored and ens-bwalts committed Nov 11, 2020
1 parent 55d287c commit e8cd200
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions modules/Bio/EnsEMBL/Hive/RunnableDB/DatabaseDumper.pm
Original file line number Diff line number Diff line change
Expand Up @@ -255,8 +255,7 @@ sub fetch_input {
} else {
$self->complete_early("Skipping the dump because this database has been restored from the target dump. We don't want to overwrite it");
}
} elsif ($self->param('nb_ehive_tables')) {
# OK, we can dump and this is an eHive database.
} elsif ($self->param('nb_ehive_tables') and !$self->worker->adaptor) {
# We add the signature to the dump, so that the
# job won't rerun on a restored database
# We're very lucky that gzipped streams can be concatenated and the
Expand All @@ -265,7 +264,7 @@ sub fetch_input {
$extra_sql =~ s/>/>>/;
$self->param('cmd', "$cmd; $extra_sql");
} else {
# Direct dump on a non-eHive database
# No signature to add (non-eHive database or standalone job)
$self->param('cmd', $cmd);
}
}
Expand Down

0 comments on commit e8cd200

Please sign in to comment.