https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=31970 --- Comment #2 from Frédéric Demians <frederic@tamil.fr> --- Created attachment 142609 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=142609&action=edit Bug 31970 - background_jobs_purge.pl to purge background jobs queue With this script, you can see the state of the background jobs queue, finished jobs only, and delete entries, globally, or by job type. Koha::BackgroundJob is extended with a purge() method which could be used from Koha WUI. TO TEST : - On a Koha instance with a populated background_jobs table. - Go in misc/cronjobs directory. - ./background_jobs_purge.pl Display script usage. List of job's types is displayed. - ./background_jobs_purge.pl all 2 --verbose Display a list of jobs (all types) to be deleted. - ./background_jobs_purge.pl all 2 --verbose --confirm Display a list of jobs (all types) that have been deleted. - ./background_jobs_purge.pl all 2 --verbose --confirm Display a message: No job to purge - ./background_jobs_purge.pl update_elastic_index 0 -v Display a list of all update_elastic_index job - ./background_jobs_purge.pl update_elastic_index 0 -v -c Display a list of all update_elastic_index job that have been delete. This could be run several time each day... -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.