Bug 32992: Move background_jobs_worker to misc/workers
authorNick Clemens <nick@bywatersolutions.com>
Fri, 17 Feb 2023 12:00:49 +0000 (12:00 +0000)
committerTomas Cohen Arazi <tomascohen@theke.io>
Fri, 24 Feb 2023 20:52:19 +0000 (17:52 -0300)
commit4c51596a4b3a514adc4b6eccb3fd2c1fa4660a61
tree84d6185301038ccd3177a696560ec7e9725d8e14
parent9b35e6e0cea424144d56c3a5fae7911b06ead905
Bug 32992: Move background_jobs_worker to misc/workers

On bug 32594 we are adding a new worker, dedicated to Elastic indexing.
We should have a common place for workers, and we agreed on misc/workers

To test:
1 - Apply patch
2 - reset_all in koha testing docker
3 - ps aux | grep background
4 - Confirm the workers are running, and running in the new directory
5 - Perform a batch item modification
6 - Ensure the job is processed by the worker

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
debian/scripts/koha-worker
debian/templates/koha-worker@.service
etc/koha-worker.service
misc/background_jobs_worker.pl [deleted file]
misc/workers/background_jobs_worker.pl [new file with mode: 0755]