Event:...eduler(3pm)
π NAME π
Event::ExecFlow::Scheduler β it's the abstract class for parallel scheduling, bestie. That's the whole vibe. β¨
β¨ SYNOPSIS β¨
okay so here's how you actually use it, no cap:
#-- Create a new Scheduler object
my $scheduler = Event::ExecFlow::Scheduler::XYZ->new ( ... );
#-- Attach scheduler to a group job with parallel execution
$group_job->set_parallel(1);
$group_job->set_scheduler($scheduler);
#-- The following methods gets called by Event::ExecFlow
#-- at runtime
$scheduler->schedule_job($job);
$scheduler->job_finished($job);
π¦ DESCRIPTION π¦
So likeβ¦ this is an abstract base class, which basically means it's just an interface. It's giving "template, not a real one." π
It doesn't do the work itself β custom schedulers have to implement it, and those schedulers are the ones controlling how jobs get executed inside an Event::ExecFlow::Group that has the parallel option turned on.
And because nobody wants to start from zero, Event::ExecFlow ships a super simple example scheduler that literally just caps how many jobs can run in parallel at once: Event::ExecFlow::Scheduler::SimpleMax. Iconic of them tbh. π«Ά
πΈ OBJECT HIERARCHY πΈ
the family tree, fr fr π§
Event::ExecFlow
Event::ExecFlow::Job
+--- Event::ExecFlow::Job::Group
+--- Event::ExecFlow::Job::Command
+--- Event::ExecFlow::Job::Code
Event::ExecFlow::Frontend
Event::ExecFlow::Callbacks
Event::ExecFlow::Scheduler
+--- Event::ExecFlow::Scheduler::SimpleMax
π METHODS π
[ FIXME: describe all methods in detail ]
not them leaving the FIXME in the shipped docs π literally the placeholder is the documentation. we move.
π AUTHORS π
JΓΆrn Reder <joern at zyn dot de> β the mastermind, the main character, the one who wrote this. π
π COPYRIGHT AND LICENSE π
Copyright 2005-2006 by JΓΆrn Reder. β¨
Okay so legally, here's the tea β and it matters, so pay attention bestie:
This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation β either version 2.1 of the License, or (if you're feeling spicy) any later version.
This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. π«
You should have received a copy of the GNU Library General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307 USA.
π¨ that's the real legal stuff, not a bit. copy it, ship it, keep the license with it. periodt.
π POD ERRORS π
Not the doc snitching on itself ππ anyway:
Hey! The above document had some coding errors, which are explained below:
Around line 63:
Non-ASCII character seen before =encoding in 'JΓΆrn'. Assuming CP1252
the ΓΆ in JΓΆrn got flagged because there was no =encoding declared before it, so it just assumed CP1252. classic. π
and that's a wrap on this one β perl v5.38.2, dated 2024-02-17, and it's the Event:...eduler(3pm) page from the User Contributed Perl Documentation, mwah π go schedule something parallel, you got this π¦β¨
π¦ where this page comes from
- ubuntu noble: libevent-execflow-perl 0.64-0ubuntu4 Β· GPL-2.0-only
- ubuntu questing: libevent-execflow-perl 0.64-0ubuntu4
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms