When I'm using $schedule->job(new MyJob(['params'])->days() in Kernel.php and php artisan schedule:run for scheduling it creates a new entry in job_statuses table.
Currently i found a workaround, i'm sending a new param to the Job ('withoutProgress') that act as a flag and didn't execute the function prepareStatus, but to me it's ugly.
Is it possible to make prepareStatus function not executed when it comes from the scheduler ?
Hello, First thanks for this library.
When I'm using
$schedule->job(new MyJob(['params'])->days()
in Kernel.php andphp artisan schedule:run
for scheduling it creates a new entry in job_statuses table.Currently i found a workaround, i'm sending a new param to the Job ('withoutProgress') that act as a flag and didn't execute the function prepareStatus, but to me it's ugly.
Is it possible to make prepareStatus function not executed when it comes from the scheduler ?
I'm on Laravel 5.8 - Php 7.2