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