Nick Clemens
3f386d2573
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>
(cherry picked from commit 4c51596a4b
)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
19 lines
470 B
Desktop File
19 lines
470 B
Desktop File
# koha-worker@.service
|
|
# /etc/systemd/system/koha-worker@.service
|
|
[Unit]
|
|
Description=Koha Task Queue Worker
|
|
After=syslog.target network.target
|
|
|
|
[Service]
|
|
User=%i-koha
|
|
Environment=PERL5LIB=/usr/share/koha/lib
|
|
Environment=KOHA_CONF=/etc/koha/sites/%i/koha-conf.xml
|
|
ExecStart=/usr/share/koha/bin/workers/background_jobs_worker.pl
|
|
Restart=on-failure
|
|
RestartSec=5s
|
|
StartLimitBurst=3
|
|
StartLimitInterval=60
|
|
SyslogIdentifier=%i-koha-worker
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|