Joshua Nathaniel Pritikin > ObjStore-1.59 > ObjStore::Job

Download:
ObjStore-1.59.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.02   Source  

NAME ^

ObjStore::Job - Jobs for a Non-Preemptive Idle-Time Job Scheduler

SYNOPSIS ^

  1. Add an ObjStore::Job::Table to your database.
  2. Sub-class ObjStore::Job and override the do_work method.
  3.   package ObjStore::Job
      use ObjStore::Mortician;

    Maybe all jobs should have delayed destruction by default.

DESCRIPTION ^

JOB STATES ^

 R running
 L infinite loop detected
 S sleeping                - will retry every second
 T suspended
 D done
 K killed

SCHEDULING PRIORITIES ^

TRANSACTION STRATEGY ^

The whole scheduling operation occurs within a single transaction. While this means that any job can kill the entire transaction, this seems a better choice than wrapping every job in its own mini-transaction. Since transactions are relatively expensive, it is hoped that most of the time all jobs will complete without error.

BUGS ^

Too bad you can't store CODEREFs in the database.

Time does not necessarily transmute into pizza.

syntax highlighting: