Skip to content
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

Running from the Laravel scheduler #39

Open
mark1282 opened this issue Oct 4, 2023 · 0 comments
Open

Running from the Laravel scheduler #39

mark1282 opened this issue Oct 4, 2023 · 0 comments

Comments

@mark1282
Copy link

mark1282 commented Oct 4, 2023

In the docs for Enlightn it provides the following code snippet. It's my understanding that these tasks always run in the background when running from the Kernel.php therefore the line ->runInBackground() isn't necessary. I'm currently upgrading from Laravel 8 to 9 and it's been flagged by Laravel shift that having this in would now raise an exception and should be removed. Should the Enlightn docs be updated to reflect this?

// In your app/Console/Kernel.php file:

/**
 * Define the application's command schedule.
 *
 * @param  \Illuminate\Console\Scheduling\Schedule  $schedule
 * @return void
 */
protected function schedule(Schedule $schedule)
{
    $schedule->command('enlightn --report')->runInBackground()->daily()->at('01:00');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant