Hi,
After upgrading our OMP installation from 3.5.0-1 to 3.5.0-5, we are facing the following issues:
-
A scheduled task table not found in the database, and the usage event log is not being processed after upgrade to OMP-3.5.0-5.
-
The search page is not showing full search options such as Author search and Advanced Search, as shown in the example/screenshots.
OMP-3.5.0-5 Screen
Expample
HI @shantanusingh
- A scheduled task table not found in the database, and the usage event log is not being processed after upgrade to OMP-3.5.0-5.
The scheduler system has been moved to core and there is not schedule table anymore . I think you are using the web based task runner and not cron to run the schedule task . That may be causing you this issue [Schedule Task] | Web based task runner may miss task executing without last run tracking · Issue #13041 · pkp/pkp-lib · GitHub and patch will be released at next release hopefully . But I would suggest to set the cron to run the schedule tasks which does not affect by this issue and will be better and will have faster processing of schedule tasks .
- The search page is not showing full search options such as Author search and Advanced Search, as shown in the example/screenshots.
This is seems like a different issue . is there any error in php error log or browser console ?
Regards
PKP Dev Team
Hi @touhidur,
I have checked the “tools” folder, but the “runScheduledTasks.php” file is not available.
Could you please guide me on where the cron file is located in the current version and how I should configure the cron job?
HI @shantanusingh please see the config.TEMPLATE.inc.php file’s [schedule] section . sample *nix command to set up for cron as * * * * * php lib/pkp/tools/scheduler.php run >> /dev/null 2>&1 . you can also run the command form installation dir as php lib/pkp/tools/scheduler.php usage to see what options available as for new schedule task tool .
Hi @touhidur
I have run the suggested commands and only processqeuejobs is running and there is no effect on usage event log. Please guide how to process the usage event log.
[root@localhost folder]# php lib/pkp/tools/scheduler.php usage
Usage:
command [arguments]
Available commands for the `jobs` namespace:
run Run the scheduler.
list List all scheduled tasks.
work Start the schedule worker.
test Run a particular scheduled task from list or use the --name to run a specific one. Set the flag --no-scroll to view the full list without scrolling.
usage Display the Scheduler usage parameters.
[root@localhost folder]# php lib/pkp/tools/scheduler.php run
2026-08-18 11:15:17 Running [PKP\task\ProcessQueueJobs] ............................................................................. 26.23ms DONE
[root@localhost ebook]# php lib/pkp/tools/scheduler.php work
INFO Running scheduled tasks every minute.
2026-08-18 11:18:00 Running [PKP\task\ProcessQueueJobs] ....... 14.29ms DONE
2026-08-18 11:19:00 Running [PKP\task\ProcessQueueJobs] ....... 14.15ms DONE
2026-08-18 11:20:00 Running [PKP\task\ProcessQueueJobs] ....... 13.23ms DONE
2026-08-18 11:21:00 Running [PKP\task\ProcessQueueJobs] ....... 13.41ms DONE
2026-08-18 11:22:00 Running [PKP\task\ProcessQueueJobs] ....... 15.96ms DONE
2026-08-18 11:23:00 Running [PKP\task\ProcessQueueJobs] ....... 14.61ms DONE
2026-08-18 11:24:00 Running [PKP\task\ProcessQueueJobs] ....... 12.79ms DONE
2026-08-18 11:25:00 Running [PKP\task\ProcessQueueJobs] ....... 12.24ms DONE
2026-08-18 11:26:00 Running [PKP\task\ProcessQueueJobs] ....... 12.93ms DONE
2026-08-18 11:27:00 Running [PKP\task\ProcessQueueJobs] ........ 8.77ms DONE
2026-08-18 11:28:00 Running [PKP\task\ProcessQueueJobs] ....... 15.49ms DONE
2026-08-18 11:29:00 Running [PKP\task\ProcessQueueJobs] ....... 13.91ms DONE
2026-08-18 11:30:00 Running [PKP\task\ProcessQueueJobs] ....... 14.79ms DONE
2026-08-18 11:31:00 Running [PKP\task\ProcessQueueJobs] ....... 16.32ms DONE
2026-08-18 11:32:00 Running [PKP\task\ProcessQueueJobs] ....... 13.03ms DONE
2026-08-18 11:33:00 Running [PKP\task\ProcessQueueJobs] ....... 11.86ms DONE
2026-08-18 11:34:00 Running [PKP\task\ProcessQueueJobs] ....... 13.86ms DONE
2026-08-18 11:35:00 Running [PKP\task\ProcessQueueJobs] ....... 14.26ms DONE
2026-08-18 11:36:00 Running [PKP\task\ProcessQueueJobs] ....... 13.15ms DONE
2026-08-18 11:37:00 Running [PKP\task\ProcessQueueJobs] ....... 13.33ms DONE
2026-08-18 11:38:00 Running [PKP\task\ProcessQueueJobs] ....... 12.22ms DONE
2026-08-18 11:39:00 Running [PKP\task\ProcessQueueJobs] ....... 13.93ms DONE
2026-08-18 11:40:00 Running [PKP\task\ProcessQueueJobs] ....... 16.03ms DONE
2026-08-18 11:41:00 Running [PKP\task\ProcessQueueJobs] ....... 16.78ms DONE
2026-08-18 11:42:00 Running [PKP\task\ProcessQueueJobs] ....... 13.35ms DONE
2026-08-18 11:43:00 Running [PKP\task\ProcessQueueJobs] ....... 13.88ms DONE
2026-08-18 11:44:00 Running [PKP\task\ProcessQueueJobs] ....... 16.76ms DONE
2026-08-18 11:45:00 Running [PKP\task\ProcessQueueJobs] ....... 15.67ms DONE
2026-08-18 11:46:00 Running [PKP\task\ProcessQueueJobs] ....... 15.57ms DONE
2026-08-18 11:47:00 Running [PKP\task\ProcessQueueJobs] ........ 9.88ms DONE
HI @shantanusingh that is correct , as queue process schedule task set to run every mins . what you are doing is running the CLI tool but like a dev . to make it production level usage, you need to set it at crontab as * * * * * php lib/pkp/tools/scheduler.php run >> /dev/null 2>&1 . then system will auto run it and the chances of miss become extremely low (unless somehow system disrupts)
Important note : it does not mean that it will run the desired task immediately but only when it set to run . the usage event processing task set to run once a month . So if it feels like a task has missed and need a re-run before it’s next run, have this command as php lib/pkp/tools/scheduler.php test which will bring the following list as
then select and run specific task immediately . I am not sure which one for the usage event but I think it’s either the StatisticsReport or the UsageStatsLoader . @bozana can you confirm which one is it ?
BTW, also note that usage stats task use jobs underneath so make sure jobs are getting executed properly .
Regards
PKP Dev Team
Hi @touhidur,
Thank you for your suggestion. I ran the following command: php lib/pkp/tools/scheduler.php test and the result was displayed as mentioned by you. I selected UsageStatsLoader, and the usage event log was executed successfully.
I have now added the following cron job: 01 17 * * * php lib/pkp/tools/scheduler.php run >> /dev/null 2>&1. As I understand, this cron job should execute every day at 17:01 (5:01 PM), and all scheduled processes/tasks will be executed one by one.
Kindly confirm whether the cron syntax and command are correct.
Few corrections
01 17 * * * php lib/pkp/tools/scheduler.php run >> /dev/null 2>&1. As I understand, this cron job should execute every day at 17:01 (5:01 PM),
No, cron scheduler should run every mins . not once a day at specific time . Not sure why you set it this way . so here is a Simulated over 365 days of 17:01 ticks: as
| Task |
Expression |
Runs/year @ 01 17 * * * |
Runs/year @ * * * * * |
PKP\task\ProcessQueueJobs |
* * * * * |
365 |
525,600 |
PKP\task\StatisticsReport |
0 0 1 * * |
NEVER |
12 |
PKP\task\RemoveUnvalidatedExpiredUsers |
0 0 1 * * |
NEVER |
12 |
PKP\task\UpdateRorRegistryDataset |
0 0 1 * * |
NEVER |
12 |
PKP\task\EditorialReminders |
0 0 1 * * |
NEVER |
12 |
APP\tasks\SubscriptionExpiryReminder |
0 0 1 * * |
NEVER |
12 |
PKP\task\UpdateIPGeoDB |
0 0 10 * * |
NEVER |
12 |
PKP\task\RemoveFailedJobs |
0 0 * * * |
NEVER |
365 |
PKP\task\RemoveExpiredInvitations |
0 0 * * * |
NEVER |
365 |
PKP\task\ReviewReminder |
0 0 * * * |
NEVER |
365 |
PKP\task\DepositDois |
0 0 * * * |
NEVER |
365 |
APP\tasks\UsageStatsLoader |
0 0 * * * |
NEVER |
365 |
APP\tasks\OpenAccessNotification |
0 0 * * * |
NEVER |
365 |
…\swordv3\…\CheckInProgressDeposits |
0 0 * * * |
NEVER |
365 |
…\doaj\DOAJInfoSender |
0 0 * * * |
NEVER |
365 |
…\crossref\CrossrefCitationDoiCheckTask |
0 * * * * |
NEVER |
8,760 |
all scheduled processes/tasks will be executed one by one.
Not also that, if a scheduler task set to run at that time, it will run . so for example, a schedule task(StatisticsReport) to set to run once a month at first date, it will run at the boundary of start of month 00:00 .
so the right setup is to use * * * * * php lib/pkp/tools/scheduler.php run >> /dev/null 2>&1 . Also if you set up the cron, make sure the turn off the web based task runner as task_runner to Off .
Hi @touhidur,
I have tried to configure the cron job in crontab as follows: * * * * * php lib/pkp/tools/scheduler.php run >> /dev/null 2>&1.
However, I am getting the following error:
Aug 20 10:21:01 localhost crond[1231]: (php) ERROR (getpwnam() failed - user unknown)
Aug 20 10:22:01 localhost crond\[1231\]: (php) ERROR (getpwnam() failed - user unknown)
Aug 20 10:23:01 localhost crond\[1231\]: (php) ERROR (getpwnam() failed - user unknown)
Also, if I uncomment the scheduler-related setting in config.inc.php, nothing happens automatically.
It seems that I may not have configured the cron job correctly to run the scheduled tasks automatically. Could you please guide me on the correct way to configure the scheduler/cron job so that all scheduled tasks run automatically without manual intervention?
HI @shantanusingh the command I presented as an example one as I have no way to know how your server and installation path set . so it is like (again as an example) ,
* * * * * PATH_TO_PHP PATH_TO_INSTALL/lib/pkp/tools/scheduler.php run >> /dev/null 2>&1
usually just using the php is good enough but depends on how server machine is setup . better to use full php path which you can get from which php command . you OJS install path, you know better .
Two very important notes :
1, once you configure the cron for schedule task, make sure to turn off the task_runner, to Off
2. NOTE that this does not means that any schedule task that has missed previously will run immediately. so for example, the usage stats are processed by task APP\tasks\UsageStatsLoader which set to run first day of every month . so next run time of it is at Sept 01, 2026 00:00:00 . It will run at that time and if cron configured properly, should not miss . But it will not if there is a missed fire at Aug 01, 2026 00:00:00, it will not going to fire immediately for missed window . you need to run it manually by cd to you install folder, and run php lib/pkp/tools/scheduler.php test, then select the targeted task and run it by enter .
Regards
PKP Dev Team
Hi @touhidur,
I have set the cron job as suggested: * * * * * username /path/to/php /path/to/OMP/lib/pkp/tools/scheduler.php run >> /dev/null 2>&1.
The cron job appears to be running correctly. However, since it runs every minute, I notice that a processQueueJobs log entry/file is generated every minute, which is causing the log files to grow significantly.
My understanding is that the scheduler checks and executes the scheduled tasks, but I am unsure whether it is necessary to run the scheduler every minute. I was expecting that the relevant log entries would be generated only when an actual scheduled task is due to run.
Could you please suggest the recommended cron frequency for OMP and clarify whether the processQueueJobs log being generated every minute is expected behaviour? Also, is there a recommended way to prevent unnecessary log generation or configure the scheduled tasks so that they run only at their specified intervals?
My understanding is that the scheduler checks and executes the scheduled tasks, but I am unsure whether it is necessary to run the scheduler every minute. I was expecting that the relevant log entries would be generated only when an actual scheduled task is due to run.
That is expected . if you dont want to run the jobs via schedule task, in config.inc.php, turn it off as setting the process_jobs_at_task_scheduler to Off . but make sure that you have other mechanism enable to process jobs as have the job_runner to On or have worker daemon setup . see https://docs.pkp.sfu.ca/admin-guide/en/deploy-jobs .
Could you please suggest the recommended cron frequency for OMP and clarify whether the processQueueJobs log being generated every minute is expected behaviour?
this is correct again . the recommended cron frequency for OJS/OMP/OPS is 1 mins, does not matter you use the web based task runner or system cron . And as mentioned above, if you dont want to process jobs via schedule task, flip the above described config under the [queues] configs .
And as per the current infrastructure of schedule system, any schedule task running do create a log file .
Regards
PKP Dev Team
Hi @touhidur,
I have turned off the crontab and am trying to run the scheduled tasks through the Scheduled Task Settings in config.inc.php. However, nothing happens after configuring the settings below. Neither processQueueJobs nor usageStatsLoader is being executed.
;;;;;;;;;;;;;;;;;;;;;;;
; Job Queues Settings ;
;;;;;;;;;;;;;;;;;;;;;;;
[queues]
; Default queue driver
default_connection = "database"
; Default queue to use when a job is added to the queue
default_queue = "queue"
; Whether or not to turn on the built-in job runner.
; When enabled, jobs will be processed at the end of each web
; request to the application.
; 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.
; See: https://docs.pkp.sfu.ca/admin-guide/en/deploy-jobs
job_runner = On
; The maximum number of jobs to run in a single request when using
; the built-in job runner.
job_runner_max_jobs = 30
; The maximum number of seconds the built-in job runner should spend
; running jobs in a single request.
; This should be less than the max_execution_time the server has
; configured for PHP.
; Lower this setting if jobs are failing due to timeouts.
job_runner_max_execution_time = 30
; The maximum consumable memory that should be spent by the built-in
; job runner when running jobs.
;
; Set as a percentage, such as 80%:
; job_runner_max_memory = 80
;
; Or set as a fixed value in megabytes:
; job_runner_max_memory = 128M
;
; When setting a fixed value in megabytes, this should be less than the
; memory_limit the server has configured for PHP.
job_runner_max_memory = 80
; Prevent multiple web requests from running JobRunner simultaneously.
; Recommended On for shared/weak hosting. Dedicated servers can disable for throughput.
job_runner_cross_request_lock = On
; Controls whether queued jobs should be processed by the task scheduler.
; This setting has no effect when the job_runner and the [schedule].task_runner are enabled,
; on this situation the jobs will be processed solely by the job runner.
process_jobs_at_task_scheduler = Off
; Remove failed jobs from the database after the following number of days.
; Remove this setting to leave failed jobs in the database.
delete_failed_jobs_after = 180
;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Scheduled Task Settings ;
;;;;;;;;;;;;;;;;;;;;;;;;;;;
[schedule]
; Whether or not to turn on the built-in scheduled task runner.
; When enabled, scheduled tasks will be processed at the end of each web
; request to the application.
; 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.
;
; Sample for the *nix crontab:
; * * * * * php lib/pkp/tools/scheduler.php run >> /dev/null 2>&1
;
; See: <link-to-documentation>
task_runner = On
; How often the built-in scheduled task runner should run at the
; end of web request life cycle (value defined in seconds).
; This configuration will only affect the built-in task runner, it doesn't apply
; to the system crontab configuration.
; The default value is 60 seconds (a value smaller than that might affect the
; application performance negatively).
task_runner_interval = 60
; When enabled, an email with the scheduled task result will only be sent when an error
; has occurred. Otherwise, all tasks will generate a notification.
scheduled_tasks_report_error_only = On
HI @shantanusingh
I have turned off the crontab and am trying to run the scheduled tasks through the Scheduled Task Settings in config.inc.php
Not sure why you plan to do that as using the cron is best and most reliable way to run schedule tasks .
I see that the process_jobs_at_task_scheduler is set to Off and job_runner to On which is good combination.
best to run it the scheduler via cron and set the task_runner to Off .
if this is to not having a per min schedule task not to create a log file, that can happen same for a high request installation using the non cron . thats a separate thing, not a bug and if need to change, should be a feature request .
nothing happens after configuring the settings below. Neither processQueueJobs nor usageStatsLoader is being executed.
web based task runner does not run if there is no web/http request . and it does have a glitch at [Schedule Task] | Web based task runner may miss task executing without last run tracking · Issue #13041 · pkp/pkp-lib · GitHub for which a patch will be release for next release of 3.5 .
and as I have mentioned , a task will only run at given time . so for the usageStatsLoader, it set to run daily, that is start of day at 00:00:00 - 00:00:59, is it’s run time . using a cron, it will/should not miss . the web based task runner has glitch that if a web request does not comes within that period, it will not track and miss the fire . as cron run once a min, it does not .
in fact, cron is the right and best tool to run/manage the schedule task and web based runner is only a fallback option if one have no way to configure/set the cron . Also in very near future the web based task runner will go away .
Regards
PKP Dev Team
Hi @touhidur,
After scheduling the cron job, only ProcessQueueJobs is executing continuously, while UsageStatsLoader is not being executed.
Could you please guide me on how to troubleshoot this.
HI @shantanusingh you dont have to do anything or any trouble shooting as UsageStatsLoader task run once a day and will auto run at the first hour of day as 00:00:00 . you can always see when a task next due run via command as php lib/pkp/tools/scheduler.php list from the installation location .
Hi @touhidur,
Now, UsageStatsLoader is executing automatically at 5:30 AM local time, and the statistics are being processed automatically through the cronjob.
However, I am concerned about the log files, as logs are being generated every minute and may become very large over time.
Could you please advise whether we can disable unnecessary logging? Otherwise, should we clean up the logs periodically?
Hi @shantanusingh this log file behaviour is by design, not a bug. The enhancement that will hopefully land in the next 3.5 release that will handle the case or queue process task at top level to omit the log file . But that is also an enhancement, not done as a bug
If this is a concern, I recommend to file an issue as feature/enhancement to address this in upcoming release .
Regards
PKP Dev Team
Hi @touhidur,
If I try to delete the TaskLog through the application to clear the log history, the Delete Task Logs option does not appear to have any effect. The task logs are not being deleted, and there is no change in the ScheduleTaskLog folder.
Could you please check and guide me on how to properly clear/delete the scheduled task logs?
Hi @shantanusingh , it does delete it. But will auto generate the folder and create new task log file for new task that continue to run .
However if it does not clear the older task logs file, means some other issue . Perhaps permission, please see the error log to check if there is any error .