You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Docker image includes a helper script (/usr/local/bin/ojs-run-scheduled) that is supposed to process the statistics.
This script is called by cron hourly, so there is no need to use Anacron (poor's man cron) plugin.
The problem is this script calls the statistics parser as follows:
Solution
Modify the script to process statistics as follows: $ tools/runScheduledTasks.php plugins/generic/usageStats/scheduledTasks.xml
Improvement
Would be nice to accept arguments for this script... although if is called without params, keep processing as regular OJS logs (for backward compativity).
This make sense in case you like to manage an unified crontab outside the dockers and run them as follows $docker exec -it ojs_app_papers ojs-run-scheduled.
The text was updated successfully, but these errors were encountered:
Docker image includes a helper script (/usr/local/bin/ojs-run-scheduled) that is supposed to process the statistics.
This script is called by cron hourly, so there is no need to use Anacron (poor's man cron) plugin.
The problem is this script calls the statistics parser as follows:
docker-ojs/templates/common/ojs/usr/local/bin/ojs-run-scheduled
Line 4 in 3c0f3d4
When the call requires a parameter:
https://docs.pkp.sfu.ca/admin-guide/en/statistics#2-configure-a-server-side-cron-job
Solution
Modify the script to process statistics as follows:
$ tools/runScheduledTasks.php plugins/generic/usageStats/scheduledTasks.xml
Improvement
Would be nice to accept arguments for this script... although if is called without params, keep processing as regular OJS logs (for backward compativity).
This make sense in case you like to manage an unified crontab outside the dockers and run them as follows
$docker exec -it ojs_app_papers ojs-run-scheduled
.The text was updated successfully, but these errors were encountered: