Tirex:...ingJobs(3pm)
π NAME π
Tirex::Manager::Rendering β bestie, this one just holds the jobs that are currently rendering. That's the whole vibe. It's the keeper of the "who's busy right now" list. π
β¨ SYNOPSIS β¨
use Tirex::Manager:RenderingJobs;
(yes, exactly like that, colons and all, don't @ me, copy it verbatim π«Ά)
π DESCRIPTION π
Okay so real talk: this module Keeps the list of currently rendering jobs.
That's it. That's its whole personality. It's the group chat admin of render jobs β knows who's in, who's out, and who's been ghosting past the timeout. π
πΈ METHODS πΈ
π¦ Tirex::Manager::RenderingJobs->new( timeout => 120 )
Create new object. Fresh start, clean slate, main character energy. β¨ The timeout => 120 is you telling it how long a job can stay before it's officially yikes.
π $rj->count()
Returns the number of jobs currently rendering. Just a lil number. A headcount of the busy girlies. π’
π $rj->add($job)
Add a job. Returns the job added. Welcome to the list, bestie, we're so happy you're here. π
π $rj->remove($job)
Remove a job. Returns the job removed. Byeeee, thanks for coming, tell your friends. π
π§ $rj->find_by_id($id)
Find a currently rendering job by its id. Detective mode activated. π
β $rj->find_by_metatile($hash)
Find a currently rendering job for some metatile by the metatile hash. Same energy as above, but you're searching by metatile hash instead of id. iykyk. πΊοΈ
π $rj->check_timeout()
Check if there are any jobs older than the timeout and remove them. They will have been killed by tirex-backend-manager in the mean time.
Returns the number of jobs removed.
Ngl this one's the bouncer at the door. If you've been in the list longer than the timeout, you're out β and fr fr, tirex-backend-manager already ended you in the meantime. π Return value is how many got escorted out.
π $rj->status()
Return status. A little report card. π
πΈ SEE ALSO πΈ
(no SEE ALSO section in this one, bestie, we keep it short and sweet π«Ά)
Sign-off time, mwah π β this page is perl v5.40.1, dated 2026-08-09, and it came to you from the lovely humans behind Tirex. Slay, go render something pretty. πβ¨π¦
π¦ where this page comes from
- ubuntu stonking: tirex 0.8.0+ds-2build3 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms