1Event::ExecFlow::ScheduUlseerr(3C)ontributed Perl DocumeEnvteantti:o:nExecFlow::Scheduler(3)
2
3
4
6 Event::ExecFlow::Scheduler - Abstract class for parallel scheduling
7
9 #-- Create a new Scheduler object
10 my $scheduler = Event::ExecFlow::Scheduler::XYZ->new ( ... );
11
12 #-- Attach scheduler to a group job with parallel execution
13 $group_job->set_parallel(1);
14 $group_job->set_scheduler($scheduler);
15
16 #-- The following methods gets called by Event::ExecFlow
17 #-- at runtime
18 $scheduler->schedule_job($job);
19 $scheduler->job_finished($job);
20
22 This abstract base class represents just an interface which needs to be
23 implemented by custom schedulers for controlling the execution of jobs
24 in a Event::ExecFlow::Group which has the parallel option set.
25
26 Event::ExecFlow ships a very simple example for a scheduler which just
27 limits the maximum number of parallel executed jobs:
28 Event::ExecFlow::Scheduler::SimpleMax.
29
31 Event::ExecFlow
32
33 Event::ExecFlow::Job
34 +--- Event::ExecFlow::Job::Group
35 +--- Event::ExecFlow::Job::Command
36 +--- Event::ExecFlow::Job::Code
37
38 Event::ExecFlow::Frontend
39 Event::ExecFlow::Callbacks
40 Event::ExecFlow::Scheduler
41 +--- Event::ExecFlow::Scheduler::SimpleMax
42
44 [ FIXME: describe all methods in detail ]
45
47 Jörn Reder <joern at zyn dot de>
48
50 Copyright 2005-2006 by Jörn Reder.
51
52 This library is free software; you can redistribute it and/or modify it
53 under the terms of the GNU Library General Public License as published
54 by the Free Software Foundation; either version 2.1 of the License, or
55 (at your option) any later version.
56
57 This library is distributed in the hope that it will be useful, but
58 WITHOUT ANY WARRANTY; without even the implied warranty of
59 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
60 Library General Public License for more details.
61
62 You should have received a copy of the GNU Library General Public
63 License along with this library; if not, write to the Free Software
64 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307
65 USA.
66
68 Hey! The above document had some coding errors, which are explained
69 below:
70
71 Around line 63:
72 Non-ASCII character seen before =encoding in 'Jörn'. Assuming UTF-8
73
74
75
76perl v5.32.0 2020-07-28 Event::ExecFlow::Scheduler(3)