Line | |
---|
1 | package LATMOS::Accounts::Task::Dummy; |
---|
2 | |
---|
3 | use strict; |
---|
4 | use warnings; |
---|
5 | use base qw(LATMOS::Accounts::Task); |
---|
6 | use LATMOS::Accounts::Log; |
---|
7 | |
---|
8 | =head1 NAME |
---|
9 | |
---|
10 | LATMOS::Accounts::Task::Dummy - A "do nothing" task for testing purpose |
---|
11 | |
---|
12 | =head1 DESCRIPTION |
---|
13 | |
---|
14 | When setup in L<la-sync-manager> this task simulate an activity by waiting 2 |
---|
15 | seconds and just exit successfully. |
---|
16 | |
---|
17 | =cut |
---|
18 | |
---|
19 | sub run { |
---|
20 | la_log LA_DEBUG, "Running dummy"; |
---|
21 | sleep 2; |
---|
22 | } |
---|
23 | |
---|
24 | 1; |
---|
25 | |
---|
26 | =head1 SEE ALSO |
---|
27 | |
---|
28 | L<LATMOS::Accounts::Task> |
---|
29 | |
---|
30 | =head1 AUTHOR |
---|
31 | |
---|
32 | Olivier Thauvin, E<lt>olivier.thauvin@latmos.ipsl.frE<gt> |
---|
33 | |
---|
34 | =head1 COPYRIGHT AND LICENSE |
---|
35 | |
---|
36 | Copyright (C) 2008, 2009, 2010, 2011, 2012 CNRS SA/CETP/LATMOS |
---|
37 | |
---|
38 | This library is free software; you can redistribute it and/or modify |
---|
39 | it under the same terms as Perl itself, either Perl version 5.10.0 or, |
---|
40 | at your option, any later version of Perl 5 you may have available. |
---|
41 | |
---|
42 | =cut |
---|
Note: See
TracBrowser
for help on using the repository browser.