TaskPipe/JobManager/Settings.pm

filter: Statementstmt 100% 8 / 8 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 1 / 1 Podpod n/a totaltotal 100% 9 / 9 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
CRAP 1.0
« TaskPipe/Iterator.pm ↑ Summary TaskPipe/LoggerManager/Settings.pm »
1 package TaskPipe::JobManager::Settings;
2  
3 38 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 38 with 'MooseX::ConfigCascade';
5  
6 =head1 NAME
7  
8 TaskPipe::JobManager::Settings - settings for the L<TaskPipe::JobManager> module
9  
10 =head1 METHODS
11  
12 =over
13  
14 =item max_kill_job_attempts
15  
16 The maximum number of tries to kill all processes associated with a job before giving up
17  
18 =cut
19  
20 38 has max_kill_job_attempts => (is => 'ro', isa => 'Int', default => 5);
21  
22  
23 =item job_tracking
24  
25 Whether to record the executed command as a job in the job table. Recording the command as a job means the job can be inspected and managed via commands like C<show jobs> and C<stop job>. This is the default behaviour. Specifying C<job_tracking=none> is necessary for commands like C<taskpipe setup> when the global database tables do not yet exist.
26  
27 =back
28  
29 =cut
30  
31 38 has job_tracking => (is => 'ro', isa => 'Str', default => 'register');
32  
33  
34 =head1 AUTHOR
35  
36 Tom Gracey <tomgracey@gmail.com>
37  
38 =head1 COPYRIGHT AND LICENSE
39  
40 Copyright (c) Tom Gracey 2018
41  
42 TaskPipe is free software, licensed under
43  
44 The GNU Public License Version 3
45  
46 =cut
47  
48 38 __PACKAGE__->meta->make_immutable;
49 38 1;
50  
« TaskPipe/Iterator.pm ↑ Summary TaskPipe/LoggerManager/Settings.pm »