<<

NAME

C4::Scheduler - Module for running jobs with the unix at command

SYNOPSIS

  use C4::Scheduler;

DESCRIPTION

METHODS

get_jobs();

This will return all scheduled jobs

get_at_jobs();

This will return all At scheduled jobs

get_at_job($id)

This will return the At job with the given id

add_at_job ($time,$command)

Given a timestamp and a command this will schedule the job to run at that time.

Returns true if the job is added to the queue and false otherwise.

BUGS

At some point C4::Scheduler should be refactored:

At and Schedule::At does not work on Win32.
At is not installed by default on all platforms.
The At queue used by Koha is owned by the httpd user. If multiple Koha databases share an Apache instance on a server, everybody can see everybody's jobs.
There is no support for scheduling a job to run more than once.

AUTHOR

Chris Cormack <crc@liblime.com>

POD ERRORS

Hey! The above document had some coding errors, which are explained below:

Around line 139:

You forgot a '=back' before '=head1'

<<