Skip to content
Snippets Groups Projects
Commit 01961b14 authored by Jessica Severin's avatar Jessica Severin
Browse files

commandline utility script to provide job-level blocking control via urls.

parent 30b5773b
No related branches found
No related tags found
No related merge requests found
#!/usr/local/ensembl/bin/perl -w
use strict;
use DBI;
use Getopt::Long;
use Bio::EnsEMBL::Hive;
my ($help, $url);
GetOptions('help' => \$help,
'url=s' => \$url,
);
if ($help) { usage(); }
my $job = Bio::EnsEMBL::Hive::URLFactory->fetch($url);
die("Unable to fecth job via url $url\n") unless($job);
$job->print_job;
$job->update_status('READY');
exit(0);
#######################
#
# subroutines
#
#######################
sub usage {
print "ehive_unblock.pl [options]\n";
print " -help : print this help\n";
print " -url <url string> : url defining hive job\n";
print "ehive_unblock.pl v1.7\n";
exit(1);
}
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