1Event::ExecFlow::ScheduUlseerr::CSoinmtprliebMuatxe(d3E)Pveernlt:D:oEcxuemceFnltoawt:i:oSncheduler::SimpleMax(3)
2
3
4
6 Event::ExecFlow::Scheduler::SimpleMax - Limit number of parallel
7 executed jobs
8
10 #-- Create a new Scheduler object
11 my $scheduler = Event::ExecFlow::Scheduler::SimpleMax->new( max => 5 );
12
13 #-- Attach scheduler to a group job
14 $group_job->set_parallel(1);
15 $group_job->set_scheduler($scheduler);
16
18 This is a simple scheduler which just limits the maximum number of
19 parallel executed jobs. It's mainly an example implementation of the
20 Event::ExecFlow::Scheduler interface, not really of big practical use
21 ;)
22
24 Event::ExecFlow
25
26 Event::ExecFlow::Job
27 +--- Event::ExecFlow::Job::Group
28 +--- Event::ExecFlow::Job::Command
29 +--- Event::ExecFlow::Job::Code
30
31 Event::ExecFlow::Frontend
32 Event::ExecFlow::Callbacks
33 Event::ExecFlow::Scheduler
34 +--- Event::ExecFlow::Scheduler::SimpleMax
35
37 [ FIXME: describe all methods in detail ]
38
40 Jörn Reder <joern at zyn dot de>
41
43 Copyright 2005-2006 by Jörn Reder.
44
45 This library is free software; you can redistribute it and/or modify it
46 under the terms of the GNU Library General Public License as published
47 by the Free Software Foundation; either version 2.1 of the License, or
48 (at your option) any later version.
49
50 This library is distributed in the hope that it will be useful, but
51 WITHOUT ANY WARRANTY; without even the implied warranty of
52 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
53 Library General Public License for more details.
54
55 You should have received a copy of the GNU Library General Public
56 License along with this library; if not, write to the Free Software
57 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307
58 USA.
59
61 Hey! The above document had some coding errors, which are explained
62 below:
63
64 Around line 93:
65 Non-ASCII character seen before =encoding in 'Jörn'. Assuming UTF-8
66
67
68
69perl v5.36.0 2022-E0v7e-n2t2::ExecFlow::Scheduler::SimpleMax(3)