TAP::PARSER::SCHEDULER::JOB(3perl)
π TAP::Parser::Scheduler::Job π
okay bestie, welcome to the Perl Programmers Reference Guide, page TAP::Parser::Scheduler::Job β it's giving "one single test job, but make it a whole object" β¨
πΈ NAME πΈ
TAP::Parser::Scheduler::Job β literally just a single testing job. that's the whole vibe. one job. one girl. π
π VERSION π
Version 3.52 β she's current, she's fresh, she's not a legacy build, periodt.
π¦ SYNOPSIS π¦
use TAP::Parser::Scheduler::Job;
that's it. that's the whole flex. load her up and you're in. π«Ά
β¨ DESCRIPTION β¨
So like. This class represents a single test 'job'. That's it. That's the assignment. One test = one job object. No cap, no extras, just a tidy little container for one unit of testing work. π§
π METHODS π
π Class Methods
"new"
my $job = TAP::Parser::Scheduler::Job->new(
$filename, $description
);
You hand her the $filename and the $description of a test β both as plain old scalars β and she blesses you with a brand new TAP::Parser::Scheduler::Job object. Constructor behavior, but make it cute. π
π Instance Methods
"on_finish"
$self->on_finish(\&method).
okay so this one registers a closure to get called when this job gets destroyed. π The callback gets handed the TAP::Parser::Scheduler::Job object as its only argument β it's only argument, direct quote, we don't fix typos in the manpage, we honor them π.
So: job dies β your closure runs β your closure receives the job object. That's the deal. π€
"finish"
$self->finish;
You call this when a job is complete, and it unlocks the job. Here's the tea:
- If a callback was registered with
"on_finish"β she calls it. π₯ - If not β she does absolutely nothing. Silent. Iconic. Unbothered. π
π Attributes π
$self->filename;
$self->description;
$self->context;
These are all "getters" π β and what do they get? They return the data set for these attributes during object construction. So whatever you fed the constructor, you can pull right back out. No extra drama, just retrieval.
"filename"β the filename, getter'd. π"description"β the description, getter'd. π"context"β the context, getter'd. π"as_array_ref"β For backwards compatibility in callbacks. That's the whole note. She's here for the legacy support girlies. π«‘
"is_spinner"
$self->is_spinner;
Returns false. Which is indicating that this is a real job rather than a 'spinner'. π―
π hold up, quick lore drop: Spinners are returned when the scheduler still has pending jobs but can't (because of locking) return one right now.
So a real job says "no, I'm not a spinner" (false), and a spinner is the thing you get when the scheduler is like "bestie I have jobs but the lock said no, here's a spinner instead." π
π cute sign-off π
this page came to you from perl v5.44.0, dated 2026-10-17, filed under TAP::P...er::Job(3perl) β and that's a wrap, bestie. go schedule your jobs. slay. π«Άβ¨π
π¦ where this page comes from
- arch rolling: perl 5.44.0-1 Β· Artistic-1.0-Perl AND GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms