Bug 30360: Add helper methods to Koha::BackgroundJobs
authorTomas Cohen Arazi <tomascohen@theke.io>
Fri, 25 Mar 2022 14:52:39 +0000 (11:52 -0300)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Thu, 5 May 2022 15:11:36 +0000 (16:11 +0100)
commit38fdd82d27f80d8265f97292b3e397f097281b04
tree4a4c7eb70dd906a636a73b6bba8ebff70873abc0
parentf6a0eb3a2a201c9ddb07b626653563faebe4434d
Bug 30360: Add helper methods to Koha::BackgroundJobs

This patch adds some helper methods to ease writing background jobs, and
also making it more consistent/solid.

To test:
1. Apply this patch
2. Run:
   $ kshell
  k$ prove t/db_dependent/Koha/BackgroundJob.t
=> SUCCESS: Tests pass. The methods have the expected behaviour.
3. Sign off :-D

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Koha/BackgroundJob.pm
Koha/Exceptions/BackgroundJob.pm [new file with mode: 0644]
t/db_dependent/Koha/BackgroundJob.t