-
Notifications
You must be signed in to change notification settings - Fork 451
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
Replace task scheduler by Laravel scheduler #9678
Comments
Ah, while you're working on it, check if you need to address this comment: #9979 (comment) |
@jonasraoni can you check the plugin PRs at #9678 (comment) specially for the pln . If all ok, I plan to update the submodules for |
@touhidurabir I've approved the other PRs! FYI I didn't test the updates locally, but there should be enough time to catch unexpected bugs until the next major release. There are just two not resolved comments, as they are generic, I'll tag @asmecher to get a second opinion (it could be also discussed on the call/voted to be more democratic 😁). |
Thanks, @jonasraoni and @touhidurabir, I've commented on both. |
#9678 Replacing task schedular with laravel scheduler
pkp/pkp-lib#9678 Replacing task schedular with laravel scheduler
pkp/pkp-lib#9678 Replacing task schedular with laravel scheduler
pkp/pkp-lib#9678 Replacing task schedular with laravel scheduler
@jonasraoni I have merged the |
pkp/pkp-lib#9678 Laravel schedule task compatiable
pkp/pkp-lib#9678 make acron non functional
pkp/pkp-lib#9678 Laravel schedule task compatiable
pkp/pkp-lib#9678 Laravel schedule task compatiable
I've merged the 3 remaining PRs, thanks! Is this ready to be closed? |
@asmecher it now good to be closed . But there was no need to merge the PR pkp/acron#10 for |
Describe the feature
The task scheduler syntax isn't very friendly and has caused issues in the past.
For a next big release, it's better to discard the code and move to the Laravel scheduler, which supports better configurations and the usage of a CRON syntax.
Extra reasons
If a plugin wants to run scheduled tasks, it needs to provide a
scheduledTasks.xml
file, and also attach itself to theAcron
plugin. After installing such plugin, the administrator of a journal, which is using CRON instead of the Acron plugin, will also need to add a new entry atCRON
to execute the plugin'sscheduledTasks.xml
.This is a follow-up of #8921
Also considering #7940
Plugins to update
PRs
Implementation Details
Changes are as following :-
PKP\scheduledTask\PKPScheduler
and only app specific ones inAPP\scheduler\Scheduler
.tools/runScheduledTasks.php
has been removed and we now have few different command to run schedules as :-Better to run
php lib/pkp/tools/scheduler.php usage
to see all available options.3. The
Acron plugin
has been removed and the functionality to run schedule task on web based request has been moved to core . To enable the web based schedule task running , need to add the following inconfig.inc.php
file :-scheduled_tasks_report_error_only
has been moved fromgeneral
section to newly added sectionschedule
inconfig.inc.php
scheduled_task
from sectiongeneral
has been removed in favour of Use or remove scheduled_tasks flag in config.inc.php #7940 .XML
but to use the laravel based scheduler convention . To plugins have own scheduler, it need to implement thePKP\plugins\interfaces\HasTaskScheduler
and register the task, for example :The text was updated successfully, but these errors were encountered: