line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package MediaCloud::JobManager::Broker::Null; |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
|
11
|
1
|
|
|
1
|
|
5
|
use strict; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
31
|
|
12
|
1
|
|
|
1
|
|
3
|
use warnings; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
33
|
|
13
|
1
|
|
|
1
|
|
4
|
use Modern::Perl "2012"; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
12
|
|
14
|
|
|
|
|
|
|
|
15
|
1
|
|
|
1
|
|
124
|
use Moose; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
5
|
|
16
|
|
|
|
|
|
|
with 'MediaCloud::JobManager::Broker'; |
17
|
|
|
|
|
|
|
|
18
|
1
|
|
|
1
|
|
5382
|
use Readonly; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
61
|
|
19
|
|
|
|
|
|
|
|
20
|
1
|
|
|
1
|
|
5
|
use Log::Log4perl qw(:easy); |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
8
|
|
21
|
|
|
|
|
|
|
Log::Log4perl->easy_init( |
22
|
|
|
|
|
|
|
{ |
23
|
|
|
|
|
|
|
level => $DEBUG, |
24
|
|
|
|
|
|
|
utf8 => 1, |
25
|
|
|
|
|
|
|
layout => "%d{ISO8601} [%P]: %m%n" |
26
|
|
|
|
|
|
|
} |
27
|
|
|
|
|
|
|
); |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
$| = 1; |
31
|
|
|
|
|
|
|
|
32
|
1
|
|
|
1
|
|
671
|
use MediaCloud::JobManager; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
39
|
|
33
|
1
|
|
|
1
|
|
6
|
use MediaCloud::JobManager::Job; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
628
|
|
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
sub BUILD |
37
|
|
|
|
|
|
|
{ |
38
|
0
|
|
|
0
|
0
|
|
my $self = shift; |
39
|
0
|
|
|
|
|
|
my $args = shift; |
40
|
|
|
|
|
|
|
} |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
sub start_worker($$) |
43
|
|
|
|
|
|
|
{ |
44
|
0
|
|
|
0
|
0
|
|
my ( $self, $function_name ) = @_; |
45
|
|
|
|
|
|
|
|
46
|
0
|
|
|
|
|
|
LOGDIE( "FIXME not implemented." ); |
47
|
|
|
|
|
|
|
} |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
sub run_job_sync($$$$) |
50
|
|
|
|
|
|
|
{ |
51
|
0
|
|
|
0
|
0
|
|
my ( $self, $function_name, $args, $priority ) = @_; |
52
|
|
|
|
|
|
|
|
53
|
0
|
|
|
|
|
|
LOGDIE( "FIXME not implemented." ); |
54
|
|
|
|
|
|
|
} |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
sub run_job_async($$$$) |
57
|
|
|
|
|
|
|
{ |
58
|
0
|
|
|
0
|
0
|
|
my ( $self, $function_name, $args, $priority ) = @_; |
59
|
|
|
|
|
|
|
|
60
|
0
|
|
|
|
|
|
LOGDIE( "FIXME not implemented." ); |
61
|
|
|
|
|
|
|
} |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
sub job_id_from_handle($$) |
64
|
|
|
|
|
|
|
{ |
65
|
0
|
|
|
0
|
0
|
|
my ( $self, $job_handle ) = @_; |
66
|
|
|
|
|
|
|
|
67
|
0
|
|
|
|
|
|
LOGDIE( "FIXME not implemented." ); |
68
|
|
|
|
|
|
|
} |
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
sub set_job_progress($$$$) |
71
|
|
|
|
|
|
|
{ |
72
|
0
|
|
|
0
|
0
|
|
my ( $self, $job, $numerator, $denominator ) = @_; |
73
|
|
|
|
|
|
|
|
74
|
0
|
|
|
|
|
|
LOGDIE( "FIXME not implemented." ); |
75
|
|
|
|
|
|
|
} |
76
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
sub job_status($$$) |
78
|
|
|
|
|
|
|
{ |
79
|
0
|
|
|
0
|
0
|
|
my ( $self, $function_name, $job_id ) = @_; |
80
|
|
|
|
|
|
|
|
81
|
0
|
|
|
|
|
|
LOGDIE( "FIXME not implemented." ); |
82
|
|
|
|
|
|
|
} |
83
|
|
|
|
|
|
|
|
84
|
|
|
|
|
|
|
sub show_jobs($) |
85
|
|
|
|
|
|
|
{ |
86
|
0
|
|
|
0
|
0
|
|
my $self = shift; |
87
|
|
|
|
|
|
|
|
88
|
0
|
|
|
|
|
|
LOGDIE( "FIXME not implemented." ); |
89
|
|
|
|
|
|
|
} |
90
|
|
|
|
|
|
|
|
91
|
|
|
|
|
|
|
sub cancel_job($) |
92
|
|
|
|
|
|
|
{ |
93
|
0
|
|
|
0
|
0
|
|
my ( $self, $job_id ) = @_; |
94
|
|
|
|
|
|
|
|
95
|
0
|
|
|
|
|
|
LOGDIE( "FIXME not implemented." ); |
96
|
|
|
|
|
|
|
} |
97
|
|
|
|
|
|
|
|
98
|
|
|
|
|
|
|
sub server_status($$) |
99
|
|
|
|
|
|
|
{ |
100
|
0
|
|
|
0
|
0
|
|
my $self = shift; |
101
|
|
|
|
|
|
|
|
102
|
0
|
|
|
|
|
|
LOGDIE( "FIXME not implemented." ); |
103
|
|
|
|
|
|
|
} |
104
|
|
|
|
|
|
|
|
105
|
|
|
|
|
|
|
sub workers($) |
106
|
|
|
|
|
|
|
{ |
107
|
0
|
|
|
0
|
0
|
|
my $self = shift; |
108
|
|
|
|
|
|
|
|
109
|
0
|
|
|
|
|
|
LOGDIE( "FIXME not implemented." ); |
110
|
|
|
|
|
|
|
} |
111
|
|
|
|
|
|
|
|
112
|
1
|
|
|
1
|
|
8
|
no Moose; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
8
|
|
113
|
|
|
|
|
|
|
|
114
|
|
|
|
|
|
|
1; |
115
|
|
|
|
|
|
|
|