DoNotDelete:docref
Plesk for Linux
how-to
Question
How to enable scheduled tasks for the Laravel project in Laravel Toolkit?
Answer
Note: Make sure the following pre-requirements are satisfied:
- Laravel Toolkit version >= 1.2.x
- Scheduled tasks defined in Kernel.php of the project:
CONFIG_TEXT: class Kernel extends ConsoleKernel
{
protected function schedule(Schedule $schedule)
{
}
. . . - The version of Laravel is >= 8.19.x
Once pre-requirements are satisfied, follow these steps:
- Log into Plesk.
- Enable Scheduler management permission according to this Plesk guide.
- Set Access to the server over SSH to /bin/bash at Domains > example.com > Web Hosting Access page.
In the scope of EXTPLESK-8895, the concept/logic of requiring SSH Shell access for Laravel Toolkit will be reworked in one of the future Plesk updates i.e. it should work without requiring any SSH shell access
- Navigate to Domains > example.com > Manage Laravel Application page and enable the Scheduled Tasks option.
Comments
1 comment
Does not work. Scheduler and jobs are greyed out. Some time ago I found I had to do something regarding to the plan of service or similar, so I could activate another app on the same server. Yet it is not well documented and makes no real sense. Should be much easier. At the end , if I am not mistaken, it is simply a mater of creating a cron job that every minute sees if there is something in the queue to be done. That shouldn't be that complicated.
Please sign in to leave a comment.