| 1 | package TaskPipe::JobManager::Settings; | ||
| 2 | |||
| 3 | 40 | ▶ | use Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 40 | 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 | 40 | 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 | 40 | 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 | 40 | __PACKAGE__->meta->make_immutable; | |
| 49 | 40 | 1; | |
| 50 | |||