diff options
author | Gervase Markham <gerv@gerv.net> | 2011-01-05 11:48:49 +0000 |
---|---|---|
committer | Gervase Markham <gerv@mozilla.org> | 2011-01-05 11:48:49 +0000 |
commit | f6a3f8319d442e832edc901ff12169ba17dceb81 (patch) | |
tree | 6626516d9161aa9ca50e1c92dcb6b4dc7ac24591 /Bugzilla/Hook.pm | |
parent | Bug 622822 - add additional_links hook to front page. r,a=mkanat. (diff) | |
download | bugzilla-f6a3f8319d442e832edc901ff12169ba17dceb81.tar.gz bugzilla-f6a3f8319d442e832edc901ff12169ba17dceb81.tar.bz2 bugzilla-f6a3f8319d442e832edc901ff12169ba17dceb81.zip |
Allow extensions to add new Jobs. r,a=mkanat.
https://bugzilla.mozilla.org/show_bug.cgi?id=617012
Diffstat (limited to 'Bugzilla/Hook.pm')
-rw-r--r-- | Bugzilla/Hook.pm | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Bugzilla/Hook.pm b/Bugzilla/Hook.pm index f6fff241a..b48ebb9fa 100644 --- a/Bugzilla/Hook.pm +++ b/Bugzilla/Hook.pm @@ -730,6 +730,23 @@ database when run. =back +=head2 job_map + +Bugzilla has a system - L<Bugzilla::JobQueue> - for running jobs +asynchronously, if the administrator has set it up. This hook allows the +addition of mappings from job names to handler classes, so an extension can +fire off jobs. + +Params: + +=over + +=item C<job_map> - The job map hash. Key: the name of the job, as should be +passed to Bugzilla->job_queue->insert(). Value: the name of the Perl module +which implements the task (an instance of L<TheSchwartz::Worker>). + +=back + =head2 mailer_before_send Called right before L<Bugzilla::Mailer> sends a message to the MTA. |