SGE/Control.pm

filter: Statementstmt 72.2% 13 / 18 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 75.0% 3 / 4 Podpod n/a totaltotal 66.6% 16 / 24 CC 2 SCAR 11.0
CC
2
Cov
65%
qdel
6.0
BEGIN
1.0
BEGIN
1.0
CRAP 3.0
« SGE.pm ↑ Summary
1 # Schedule::SGE::Control
2  
3 # POD docs
4  
5 =head1 Schedule::SGE::Control
6  
7 Control jobs on the SGE queues. You should not use this method directly, rather you should use the SGE method that inherits from this, then all the methods herein are available to you.
8  
9 =head1 AUTHOR
10  
11 Rob Edwards (rob@salmonella.org)
12 3/24/05
13  
14 =cut
15  
16 package SGE::Control;
17 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
18 1 ▶use Exporter;
Subroutine BEGIN: called CC=1 SCAR=0.0
19  
20 1 ▶use vars qw(@ISA @EXPORT_OK);
Subroutine BEGIN: called CC=1 SCAR=0.0
21 1 @ISA = qw(Schedule::SGE Exporter);
22 1 @EXPORT_OK = qw(qdel);
23 1 our $VERSION = '0.01';
24  
25 =head2 qdel()
26  
27 Delete all failed jobs from a queue (this must be run as the user who owns the jobs)
28  
29 =cut
30  
31 0 ▶sub qdel {
Subroutine qdel: not called CC=2 SCAR=17.9
32 0 my ($self, $user)=@_;
33 0 ▶ unless ($user) {$user =`whoami`; chomp($user)}
Branch: 1 branch
BranchTrueFalseTotal
unless ($user) 0 0 0
34 0 print `qdel -u $user`;
35 }
36  
37  
38 1 1;
« SGE.pm ↑ Summary