-
Notifications
You must be signed in to change notification settings - Fork 445
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Address the execution of scheduled tasks and jobs #9682
Comments
…of jobs through a configuration
…of jobs through a configuration
@touhidurabir You can take a look at this one as well. I think the |
@jonasraoni I approve the changes. even though that was not our initial thought as we want to people move away from job runner as mush as possible but I see the advantage of allowing it run through when running it via cron even when it's disable . This will allow to utilize the job runner with defined constrains through cron even when it's turn off for application request life cycle . |
Thanks, so I'll merge! tl;dr: |
…ouple-scheduled-tasks-from-jobs #9682 Decoupled the execution of scheduled tasks to the ex…
…heduled-tasks-from-jobs #9682 Decoupled the execution of scheduled tasks to the ex…
…of jobs through a configuration
Describe the bug
php tools/runScheduledTasks.php
runs scheduled tasks AND jobs.php lib/pkp/tools/jobs.php run
runs only jobs.Therefore, the execution of scheduled tasks ends up shadowing the usage of the job runner. After skimming the code, looks like the scheduled task
PKP\task\ProcessQueueJobs
will run all the queued jobs (which might be too resource intensive).Solution
php tools/runScheduledTasks.php
as it is, doing everything. It will save less skilled users (that won't upgrade the system properly/deal with sysadmin details).runScheduledTasks.php
frequently inside the job runner (e.g. when using theworker
mode, it would probably require dispatching a job that dispatches itself, which is risky if not done properly), then I think a configuration to control whether therunScheduledTasks.php
will also run jobs is enough. This will allow skilled users to run the scheduled tasks and jobs separately.What application are you using?
OJS 3.4
The text was updated successfully, but these errors were encountered: