5.7.46. Bugzilla::JobQueue

5.7.46.1. NAME

Bugzilla::JobQueue - Interface between Bugzilla and TheSchwartz.

5.7.46.2. SYNOPSIS

use Bugzilla;

my $obj = Bugzilla->job_queue();
$obj->insert('send_mail', { msg => $message });

5.7.46.3. DESCRIPTION

Certain tasks should be done asyncronously. The job queue system allows Bugzilla to use some sort of service to schedule jobs to happen asyncronously.

Inserting a Job

See the synopsis above for an easy to follow example on how to insert a job into the queue. Give it a name and some arguments and the job will be sent away to be done later.

5.7.46.4. Methods in need of POD

  • insert
  • bz_databases
  • job_map
  • set_pidfile
  • kill_worker

This documentation undoubtedly has bugs; if you find some, please file them here.