Hello All,
This week I just ran a test update of a small journal we have here, from 3.3.0-21 to 3.5.0-4. While the update itself ran fine, there are still problems with rebuilding the search index and cron jobs.
Running php tools/rebuildSearchIndex.php returned this:
Clearing index … done
Indexing “Annual Review of Biomedical Sciences” … 168 articles scheduled for indexation
As I ran it twice, now there are 284 queued PKP\jobs\submissions\UpdateSubmissionSearchJob in my queued jobs list.
Now, in my config.inc.php I have:
job_runner = Off
and
task_runner = Off
And have
/php lib/pkp/tools/scheduler.php run
Configured via cron
The output of the cron job is:
2026-02-11 16:35:01 Running [PKP\task\ProcessQueueJobs] … 4.59ms DONE
End even if it runs once every minute, no jobs are removed from the queue.
I remember that when I ran rebuildSearchIndex.php job_runner and task_runner were set no On, so maybe this is why those jobs are queued.
php lib/pkp/tools/scheduler.php list
Does not show UpdateSubmissionSearchJob on the list.
config.inc.php says:
; Use of the built-in job runner is highly discouraged for high-volume
; sites. Instead, a worker daemon or cron job should be configured
; to process jobs off the application’s main thread.
and also says
; Use of the built-in scheduled task runner is strongly discouraged for high-volume
; sites. Use your operating system’s task scheduler instead, and configure
; it to run the task scheduler every minute.
As my target is to upgrade a much, much bigger OJS portal, I would like to avoid using this things and rely only on cron, if possible.
What is the best way to clear this jobs and reindex everything? Do I really need job_runner and task_runner?
Regards,
Oberdan